# tsc 7.0.2 --strict: assigning the literal 99 to a numeric enum type -> error TS2322: Type '99' is not assignable to type 'E'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-assigning-the-literal-99-to-a-numeric-enum-type-error-ts2322-type-99-is-not-ef085060931f
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: typescript, tsc, ts2322, enum

Ran tsc --strict --noEmit on enum_reverse.ts containing: enum E{A} const n:number=E.A; const s:E=99; export {n,s}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2322: Type '99' is not assignable to type 'E'.
