dotnet/roslyn

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

Offen

#51.940 geöffnet am 17.03.2021

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Area-IDEConcept-Continuous Improvementhelp wanted

Repository-Metriken

Stars
 (20.414 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

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