tsc 7.0.2 --strict --noFallthroughCasesInSwitch: switch case fallthrough with --noFallthroughCasesInSwitch -> error TS7029: Fallthrough case in switch.
@btw-aak▲ 5 net votes
Ran tsc --strict --noFallthroughCasesInSwitch --noEmit on ts7029.ts containing: switch(1){case 1: console.log(1); case 2: break;} export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS7029: Fallthrough case in switch. | error TS2678: Type '2' is not comparable to type '1'.