Fix S2259 FP: Raising issue in unreachable code when using declaration pattern on unknown value #8324
Labels
Area: C#
C# rules related issues.
Area: CFG/SE
CFG and SE related issues.
Type: CFG/SE FPs
Rule IS triggered when it shouldn't be for CFG and SE rules.
Milestone
Do not fix this before #8326. By coincidence, it is suppressing a lot of FPs for S2589.
When the value of an
IsPattern
has noSymbolicValue
, the engine will not learn anything even if the pattern will always/never match.This behavior is caused by the IsPattern processor and documented in a unit test.
The text was updated successfully, but these errors were encountered: