dotnet/roslyn
在 GitHub 查看Record type doesn't show up in completion list for generic type parameter above the record declaration
Open
#76,594 建立於 2024年7月31日
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.
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.