Fix assert in UsePatternMatching.CSharpAsAndNullCheckDiagnosticAnalyzer
1. Bail out early if there is a reference to assigned local between the declaration and null check being replaced with pattern matching. 2. Remove assert for bail out in presence of errors/unhandled cases. Fixes #31388
Showing
想要评论请 注册 或 登录