Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Errors] break/continue across function boundary #57

Closed
mhegazy opened this issue Jul 17, 2014 · 1 comment
Closed

[Errors] break/continue across function boundary #57

mhegazy opened this issue Jul 17, 2014 · 1 comment
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 17, 2014

while (true) {
      function f() {
        break;
      }
    }

Expected: Jump target cannot cross function boundary.

Actual: no error

@mhegazy mhegazy added this to the TypeScript 1.1 milestone Jul 17, 2014
@JsonFreeman
Copy link
Contributor

Fixed by #215

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

4 participants