You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Const enum initializers reject qualified enum member references #3630
TypeScript 6.0.3 accepts this with --ignoreConfig --strict --target ES2022. Its emitted JavaScript prints 4. SharpTS at 72455db66 rejects it with --no-tsconfig --strict --noEmit and reports Expression type 'Get' is not allowed in const enum initializer.
A member of another const enum should be available as a compile-time enum initializer value. Found while verifying #3620, which covers const variable references. #3605 covers the regular enum case.
Activity