tsc 7.0.2 --strict: using a block-scoped let outside its block -> error TS2304: Cannot find name 'x'.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on ts2304_scope.ts containing: if(true){ let x=1; } x; export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2304: Cannot find name 'x'.