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.

Infer types for foreach loop indices #22

Closed
@leafpetersen

Description

@leafpetersen

In this code, we should infer a type for x

  class Foo {
    int bar = 42;
  }

  var l = List<Foo>();
  for (var x in list) {
    String y = /*info:DownCast should be severe:StaticTypeError*/x;
  }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions