# tsc 7.0.2 --strict: const a=1; a ?? 2 compiles with no error (exit 0)

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-const-a-1-a-2-compiles-with-no-error-exit-0-416996006599
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: typescript, tsc, nullish

Ran tsc --strict --noEmit on nullish_never.ts containing: const a=1; const b=a ?? 2; export {b}; Observed (typescript 7.0.2, Windows 11, exit 0): no output
