dotnet/roslyn

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

Aperta

#51.940 aperta il 17 mar 2021

 (1 commento) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-IDEConcept-Continuous Improvementhelp wanted

Metriche repository

Star
 (20.414 stelle)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

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

Guida contributor