dotnet/roslyn

'Go to definition' on a tuple element name does not take you to the declaration of the name in metadata/decompiled source

Open

#51,940 opened on Mar 17, 2021

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDEConcept-Continuous Improvementhelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

If you press F12, you get an error rather than navigating to where Zip declares the tuple element name First in metadata or decompiled source:

using System.Linq;

_ = new[] { 1 }.Zip(new[] { 1 }).First().First[||];

image

Expected:

Metadata view places you here:

image

Contributor guide