Provide hint when for-in loop is wrong #18861
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Consider the following code:
List<String> strings = <String>[];
for (int i in strings) { }
There should be a hint that a string cannot be assigned to an int.
The text was updated successfully, but these errors were encountered: