-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Add support for template literals in enums #31042
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
Add support for template literals in enums #31042
Conversation
fdeb759 to
e1b6696
Compare
e1b6696 to
1b8eab5
Compare
|
One small question: |
|
@ahejlsberg just wanted to get a 👍 from you on this one before proceeding |
|
You made this comment in the issue:
I agree, but this PR narrowly handles string literals in enum initializers. There are multiple other places in the checker where we look for |
Except ES6 imports. Because per spec they aren't allowed there. :( |
|
Oh, I was working in scope of initial issue so this PR only supports enums. Just to clarify scope of expected PR:
Is it correct? |
|
I'm finishing my investigation of places where support for |
|
Is there a blocker on this issue I could help with? |
|
I've prepared list of places that have different behavior for template literals and regular strings. |
|
Closing this one in favor of #32064 |
Fixes #30962