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] with blocks and global vars #47

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

[Errors] with blocks and global vars #47

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

with (window) {
        var p = () => this;
}

Expected: no error
Actual:

with (window) {
        !!! Could not find symbol 'window'.
        var p = () => this;
    }
@mhegazy mhegazy added this to the TypeScript 1.1 milestone Jul 17, 2014
@JsonFreeman
Copy link
Contributor

Fixed with #176

@JsonFreeman JsonFreeman reopened this Jul 23, 2014
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
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