False positive and false negative in unnecessary_parentheses #5112
Labels
false-negative
false-positive
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
I created one issue instead of true because these might be related. It almost looks like a condition is reversed.
I believe the lint should produce a diagnostic for the following code, but does not.
removing the parentheses does not change the semantics of the code.
On the other hand, the lint should not produce a diagnostic for the following code, but does.
removing the parentheses here causes the set literal to be interpreted as a block.
The text was updated successfully, but these errors were encountered: