I've upgraded to Dart 1.9 and am happy to see a list of new hints and warnings to fix in my codebase. Always great to have better static analysis.
I have a bit of code like this:
Iterable l;
List outer = [];
for (Object _ in l) {
outer.add([]);
}
This code now gives a hint:
The value of the local variable '_' is not used
Is there some way to tell the analysis server that I don't expect _ to be used? I realize that I could re-factor this code to a functional style but I think it is clearest with the for - in style loop.