PR #22673 introduces support for code completion for tuples. This issue documents a missing piece in the completion. The following test fails (action is not suggested). It was written here
[WorkItem(22342, "https://github.com/dotnet/roslyn/issues/22342")]
[Fact(Trait(Traits.Feature, Traits.Features.Completion)]
public async void TupleElementTypeInference()
{
var markup = @"
class Test
{
void Do()
{
(var accessViolationException, var $$) = (new AccessViolationException(), new Action(() => { }));
}
}
";
await VerifyItemExistsAsync(markup, "action");
}
PR #22673 introduces support for code completion for tuples. This issue documents a missing piece in the completion. The following test fails (action is not suggested). It was written here