Open sgrekhov opened 1 week ago
Summary: The issue reports that the Dart analyzer and CFE do not flag compile-time errors when iterating over a List<void>
or Stream<void>
using a for-in
loop, despite the language specification stating that such iterations should be flagged as errors.
@chloestefantsova Can you take a look at this for both analyzer and CFE? Maybe we need a breaking change request since none of the tools currently report the error.
In the language specification we have:
But the code below doen't have expected errors nor in the analyzer nor in the CFE.