dotnet/roslyn
'Use pattern-matching' should be missing on writes from local function captures
Aperta
#29.512 aperta il 24 ago 2018
Area-IDEBughelp wanted
Metriche repository
- Star
- (20.414 stelle)
- Metriche merge PR
- (Merge medio 6g 17h) (256 PR mergiate in 30 g)
Descrizione
From https://github.com/dotnet/roslyn/pull/26097#discussion_r210728805
We should look for writes that are logically within the span, but syntactically are not.
var s = field as string; WriteField(); if (s != null) { ... } void WriteField () => field = null;
/cc @sharwell