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
Checker rejects a numeric enum member used as an enum initializer #3605
TypeScript 6.0.3 accepts this and its emitted JavaScript prints 5. SharpTS with --no-tsconfig --strict --noEmit reports TS18033 for A. The checker also rejects enum E { Initial = 4, A = E.Initial, B }. Both references should be accepted as numeric constants. This concerns checking the member reference as the entire initializer. #3595 concerns interpreting an arithmetic expression that already passes checking.
Activity