-
Notifications
You must be signed in to change notification settings - Fork 330
Open
Labels
Milestone
Description
I'm constantly fighting errors like:
message: 'Unsound implicit cast from dynamic to List<Foo>'
at: '28,22'
source: 'dart'
From things like:
List<Foo> foos = yaml['foos'].map((YamlMap yamlFoo) {
return fooFactory.fooByName(yamlFoo['name']);
}).toList();
It would help if there was a key combination I could use to see what the inferred type was in each step of my call chain.
dynamic poisons your chained calls, as soon as you hit one, the rest of them end up dynamic, so figuring out which step in the chain ended up dynamic is what I'm trying to do. Maybe this is an analyzer issue?