dotnet/roslyn
View on GitHubImprove error message reported when attempting to declare `ref` field in a `ref struct`
Open
#37,597 opened on Jul 30, 2019
Area-CompilersBugConcept-Diagnostic ClarityLanguage-C#help wanted
Description

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.