dotnet/roslyn
Vedi su GitHubneed a better error message for invalid lambda capturing of ref-like types
Open
#22.058 aperta il 11 set 2017
Area-CompilersBugConcept-Diagnostic ClarityFeature - Readonly ReferencesLanguage-C#help wanted
Metriche repository
- Star
- (20.414 star)
- Metriche merge PR
- (Merge medio 6g 17h) (256 PR mergiate in 30 g)
Descrizione
See the use of ERR_AnonDelegateCantUseLocal
We are reusing the same errors for ref variables and for ref-like values. In the second case it could be confusing, although coming up with a better error is not easy. It should not at least say "ref" - that is not a problem here, probably "ref-like types"