false positive invariant_booleans on nested if #58014
Labels
devexp-linter
Issues with the analyzer's support for the linter package
legacy-area-analyzer
Use area-devexp instead.
linter-false-positive
P4
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
invariant_booleans fired when im using if statement with or operation then using the same statement with and condition
To Reproduce
a && b
is detected as invariant_booleansExpected behavior
invariant_booleans should not be fired, because the condition is not redundant with previous condition
Additional context
when the inner statement is only if, without else / else if, invariant_booleans isnt fired
The text was updated successfully, but these errors were encountered: