IDE0083 looks only for declaration patterns #50690
Labels
Area-Analyzers
Concept-Continuous Improvement
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
roslyn/src/Analyzers/CSharp/Analyzers/UsePatternMatching/CSharpUseNotPatternDiagnosticAnalyzer.cs
Lines 64 to 77 in d57cddb
The above implementation will produce a diagnostic for
!(x is Y y)
but not for!(x is Y)
. Both can useis not
and should have diagnostic.The text was updated successfully, but these errors were encountered: