-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondart-model-language-patternsIssues with analyzer's support for the patterns language featureIssues with analyzer's support for the patterns language featuredevexp-assistIssues with analysis server assistsIssues with analysis server assistslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.
Description
With the following Dart 3.0 code:
f(num n) {
if (n case int()) {
print("it's an int");
} else {
print("it's not an int");
}
}
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
and else
blocks, but doesn't change the if
statement in any other way.)
Reproduced in 60fec9c.
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work ondart-model-language-patternsIssues with analyzer's support for the patterns language featureIssues with analyzer's support for the patterns language featuredevexp-assistIssues with analysis server assistsIssues with analysis server assistslegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.