Skip to content

Misleading error message when you use a class that doesn't have an import #1313

Open
@sethladd

Description

@sethladd

screen shot 2017-09-03 at 3 55 53 pm

Here, I construct a class, one which is not yet imported into my file.

The first error is confusing and probably not helpful: "returns type dynamic" .. ? it's returning a type of LotteryStateBadge

The second error is probably the one we want, however I'd love for it to also say ", not found in any imports"

And then, I'd love for a quick fix to be added right here saying "Import this class?"

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions