-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onlegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
consider:
void main() {
var l = true ? [] : <int>[];
l.add(42);
print(l);
}This l is inferred as EfficientLength
(see dart-archive/dev_compiler#288)
Edit: and also fix GUB, as @leafpetersen notes in this comment.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onlegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug