Closed
Description
Object o;
dynamic d;
for (var x in o) {} // no error
for (int x in d) {} // no error
for (int x in o) {} // error
for (var x in d) {} // no error
The same behavior occurs for spread collections.
I would expect that all of these would be flagged based on the fact that all four of these assignments are flagged:
Iterable<dynamic> idd = d;
Iterable<int> iid = d;
Iterable<dynamic> ido = o;
Iterable<int> iio = o;