Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Spurious Downcast info messages for const. #8

Closed
@jacob314

Description

@jacob314

I don't think this code should be generating a downcast. BAR should have static type String.

Repo:

class Foo {
  static const BAR = 'hi';
}

class Baz {
  String bla = Foo.BAR; // Info: DownCast
}

Note this seems to impact all const and final fields. Fixing this bug will fix a large number of the DownCasts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions