Skip to content

Commit

Permalink
Add test for F1 on "allows ref struct" (#73654)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToddGrun authored May 23, 2024
1 parent d89c824 commit c2d84f5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/VisualStudio/CSharp/Test/F1Help/F1HelpTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,19 @@ await Test_KeywordAsync(
}", "structconstraint");
}

[Fact, WorkItem("https://github.com/dotnet/roslyn/issues/48392")]
public async Task TestAllowsRefStructAntiConstraint()
{
await Test_KeywordAsync(
@"class C
{
void M<T>()
where T : all[||]ows ref struct
{
}
}", "allows");
}

[Fact, WorkItem("https://github.com/dotnet/roslyn/issues/48392")]
public async Task TestUsingStaticOnUsingKeyword()
{
Expand Down

0 comments on commit c2d84f5

Please sign in to comment.