dotnet/roslyn
need a better error message for invalid lambda capturing of ref-like types
オープン
#22,058 opened on 2017/09/11
Area-CompilersBugConcept-Diagnostic ClarityFeature - Readonly ReferencesLanguage-C#help wanted
Repository metrics
- Stars
- (20,414 個のスター)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 256 merged PRs)
説明
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"