dotnet/roslyn

Record type doesn't show up in completion list for generic type parameter above the record declaration

Open

#76,594 创建于 2024年7月31日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C# (4,257 fork)batch import
Area-IDEhelp wanted

仓库指标

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

描述

If I define a record type, the type doesn't show up in the completion list in code before the type is defined, even though the code does build.

The screenshot is from a Razor document but the issue repros in a plain .cs file too.

devenv_cISL73I8x5

The record type does show up in the completion list in code after the record type is defined.

If I define a class instead of a record, then the type shows up in completions before and after the type definition.

贡献者指南