dotnet/roslyn
Completion shows other properties in generic method inside object initializers, not types
开放
#50,777 创建于 2021年1月26日
Area-IDEBugIDE-IntelliSenseIntelliSense-Completionhelp wanted
仓库指标
- 星标
- (20,414 个星标)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
A bit complicated, but a repro speaks many, many words:
namespace Test
{
public class Class1
{
public string Prop { get; set; }
public string Prop2 { get; set; }
public string M<T1, T2>()
{
_ = new Class1
{
Prop = M<string, $$
}
}
}
}
Invoking completion at the $$ shows Prop2, not types. If I add another >, or fill in a value for Prop2 above/below, I correctly get type completion there.