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

fix: adjust enum transpile to generate var if not const enum #962

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dallastjames
Copy link

matches tsc output to correctly support declaration merging.

This would close this issue I opened in reference to supporting declaration merging. It adjusts any enum that is not a const enum to use the var declaration after transpile instead of the const declaration so that declaration merging works correctly. Since declaration merging is not possible with a const enum, those are left with the const declaration. Updated the appropriate test files to reflect this change.

matches tsc output to correctly support declaration merging
@evmar
Copy link
Contributor

evmar commented Jan 2, 2019

Do we know that Closure supports reopening enums in this manner? I don't really understand the rules for how enums work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants