You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kevmoo opened this issue
Feb 15, 2015
· 5 comments
Labels
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
I'm saying that const<int>[1, 2, 3] should have reified type List<int> as you expected when you wrote the code. If you had written const [1, 2, 3] it would be List<dynamic>. Only if you wrote <Object>[1, 2, 3] would it be List<Object>.
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
class Foo {
final List<int> values;
const Foo(this.values);
}
const _foo = const Foo(const <int>[1,2,3]);
This fails in checked mode because "const <int>[1,2,3]" has a rarified type of "List<Object>", not "List<int>"
The text was updated successfully, but these errors were encountered: