Closed
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.
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.