"Invert if" should not be offered for if-case #52148
Labels
analyzer-assist
Issues with analysis server assists
analyzer-language-patterns
Issues with analyzer's support for the patterns language feature
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
With the following Dart 3.0 code:
Place the cursor on the
if
token and request quick assists.Expected result: the quick assist "invert if" should not be offered.
Observed result: the quick assist "invert if" is offered, and its behaviour doesn't preserve semantics. (It exchanges the
if
andelse
blocks, but doesn't change theif
statement in any other way.)Reproduced in 60fec9c.
The text was updated successfully, but these errors were encountered: