-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Unable to use numeric enums as keys of a map #16842
Comments
What version did this work in? As far as I can tell this has never been legal
|
@RyanCavanaugh doh, sorry! I misread #2491 (comment) (and the followup comment) as if it was supported I think we can probably close this as a dupe of #13042 |
@RyanCavanaugh but is it ever going to be supported/legal? |
@amitbeck it looks like it's on the roadmap: #13042 (comment) |
@nevir I know, I've commented on that exact issue :) Didn't see the milestone change, thanks for reminding me. |
This appears to be a regression of #2491 (& #12425?)
TypeScript Version: 2.4.1
Code
Expected that this snippet does not produce errors, but it does:
[Playground]
The text was updated successfully, but these errors were encountered: