Skip to content
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 opened this issue Jan 9, 2015 · 1 comment
Closed

Infer types for foreach loop indices #22

leafpetersen opened this issue Jan 9, 2015 · 1 comment

Comments

@leafpetersen
Copy link
Contributor

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;
  }
@jmesserly jmesserly self-assigned this Jan 12, 2015
@jmesserly jmesserly removed their assignment Mar 19, 2015
@vsmenon
Copy link
Contributor

vsmenon commented Aug 12, 2015

This was fixed a while back.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants