Skip to content

Would like a way to see the analyzer's inferred type. #472

@eseidel

Description

@eseidel

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions