Skip to content

Fix block-scoped enum declarations#15423

Merged
rbuckton merged 1 commit into
masterfrom
fix15403
Apr 28, 2017
Merged

Fix block-scoped enum declarations#15423
rbuckton merged 1 commit into
masterfrom
fix15403

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

This changes the TypeScript transformation for enums to emit enums as let declarations everywhere other than the top level of a source file. We still emit var for enums at the top level of a source file to avoid static errors caused by redeclaration for global (non-module) scripts.

Fixes #15403.
Fixes #15401.

@rbuckton rbuckton requested review from a user and mhegazy April 27, 2017 22:08
@rbuckton rbuckton merged commit 3d23b9c into master Apr 28, 2017
@rbuckton rbuckton deleted the fix15403 branch April 28, 2017 00:47
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants