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

Variables bound in for loops are being type checked incorrectly #20

Closed
leafpetersen opened this issue Jan 9, 2015 · 0 comments
Closed

Comments

@leafpetersen
Copy link
Contributor

This code should produce an error (even in regular Dart), but seems to be currently passing our typechecker.

  for (int i = 0; i < 10; i++) {
    i = /*pass should be severe:StaticTypeError*/"hi";
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant