-
Notifications
You must be signed in to change notification settings - Fork 12.8k
[Experiment] feat(40793): Enable constants as computed values for string enums #49809
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
Conversation
The TypeScript team hasn't accepted the linked issue #40793. If you can get it accepted, this PR will have a better chance of being reviewed. |
@typescript-bot perf test this |
Heya @DanielRosenwasser, I've started to run the perf test suite on this PR at 76fe6a3. You can monitor the build here. Update: The results are in! |
Another test I'd like to see (might think of more) is whether TDZ violations are caught enum A {
B = C
}
const C = "hello"; |
@DanielRosenwasser Here they are:
CompilerComparison Report - main..49809
System
Hosts
Scenarios
TSServerComparison Report - main..49809
System
Hosts
Scenarios
Developer Information: |
1f21d95
to
12ab0fe
Compare
Fixes #40793