-
Notifications
You must be signed in to change notification settings - Fork 13.4k
enum errorΒ #57672
Copy link
Copy link
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
π Search Terms
enum
π Version & Regression Information
TypeScript 5.4.x
5.3.x is OK
β― Playground Link
https://www.typescriptlang.org/play?ts=5.4.1-rc#code/MYewdgzgLgBApmArgWxgQRgbwFAzzAOQEMCYBeGARgBpd8BJMAMwEswWoBPcmAJmwC+QA
π» Code
π Actual behavior
An enum member cannot have a numeric name.(2452)
π Expected behavior
no error here
Additional information about the issue
No response