dotnet/roslyn
'Use pattern-matching' should be missing on writes from local function captures
開放
#29,512 建立於 2018年8月24日
Area-IDEBughelp wanted
倉庫指標
- 星標
- (20,414 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
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