dotnet/roslyn

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

Open

#76,594 opened on 2024年7月31日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDEhelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

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.

コントリビューターガイド