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.

For loop variable type inference doesn't always work correctly #21

Closed
@leafpetersen

Description

@leafpetersen

We should infer that i has type int here.

  for (var i = 0; i < 10; i++) {
    int j = /*info:DownCast should be pass*/i + 1;
  }

We seem to do this sometimes, not sure why it doesn't happen here - I think maybe the inference is happening but not getting propagated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions