Dynamic type errors during construction of literal lists and maps #628
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
Milestone
For list literals, the spec says:
"The ith element of a is set to oi+1 , 0<=i<=n"
I don't think it is clear that setting the ith element implies a dynamic type error if oi+1 is not a subtype of the element type of the list literal. Similarly, it is not obvious what happens for compile-time constants with dynamic type errors.
The text was updated successfully, but these errors were encountered: