提交 15e654e0 编写于 作者: C Cyrus Najmabadi

Add test to validate proper intellisense.

上级 a6f8496f
......@@ -418,5 +418,27 @@ public async Task TestNotAfterRefExpression()
await VerifyAbsenceAsync(AddInsideMethod(
@"ref int x = ref $$"));
}
[WorkItem(10170, "https://github.com/dotnet/roslyn/issues/10170")]
[Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
public async Task TestInPropertyPattern()
{
await VerifyKeywordAsync(
@"
using System;
class Person { public string Name; }
class Program
{
void Goo(object o)
{
if (o is Person { Name: $$ })
{
Console.WriteLine(n);
}
}
}");
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册