Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,8 @@ void M()
""", RequireAllParenthesesForClarity);

[Fact, WorkItem("https://github.com/dotnet/roslyn/issues/79286")]
public async Task TestCoalescePrecedence4()
{
await TestMissingAsync(
public Task TestCoalescePrecedence4()
=> TestMissingAsync(
"""
class C
{
Expand All @@ -439,7 +438,6 @@ void M()
}
}
""", RequireAllParenthesesForClarity);
}

[Fact]
public Task TestBitwisePrecedence1()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5369,9 +5369,8 @@ public void Goo(byte x = 1)
""");

[Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545736")]
public async Task TestCastedOptionalParameter1()
{
const string code = """
public Task TestCastedOptionalParameter1()
=> TestWithAllCodeStyleOptionsOffAsync("""
using System;
interface I
{
Expand All @@ -5381,9 +5380,7 @@ interface I
class C : {|CS0535:I|}
{
}
""";

const string expected = """
""", """
using System;
interface I
{
Expand All @@ -5397,10 +5394,7 @@ public void Goo(ConsoleColor x = (ConsoleColor)(-1))
throw new NotImplementedException();
}
}
""";

await TestWithAllCodeStyleOptionsOffAsync(code, expected);
}
""");

[Fact, WorkItem("http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545737")]
public Task TestCastedEnumValue()
Expand Down
Loading
Loading