dotnet/roslyn
Improve error message reported when attempting to declare `ref` field in a `ref struct`
開放
#37,597 建立於 2019年7月30日
Area-CompilersBugConcept-Diagnostic ClarityLanguage-C#help wanted
倉庫指標
- 星標
- (20,414 顆星)
- PR 合併指標
- (平均合併 6天 17小時) (30 天內合併 256 個 PR)
描述

Current error message:

Seems like the code is parsed as method declaration. It would be better to parse as field declaration and report error on ref keyword.