Skip to content

Commit 8bf80c6

Browse files
Add F1 test for scoped (#64094)
2 parents 1c74b2e + 8da820f commit 8bf80c6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/VisualStudio/CSharp/Test/F1Help/F1HelpTests.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,6 +1994,17 @@ public class C
19941994
""", "required");
19951995
}
19961996

1997+
[Fact]
1998+
public async Task TestScoped()
1999+
{
2000+
await Test_KeywordAsync("""
2001+
sc[||]oped var r = new R();
2002+
ref struct R
2003+
{
2004+
}
2005+
""", "scoped");
2006+
}
2007+
19972008
[Fact]
19982009
public async Task TestDefaultConstraint()
19992010
{

0 commit comments

Comments
 (0)