dotnet/roslyn

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

开放

#51,940 创建于 2021年3月17日

 (1 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-IDEConcept-Continuous Improvementhelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

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

贡献者指南