tests/cases/compiler/letConstInCaseClauses.ts(7,5): error TS2304: Cannot find name 'console'. tests/cases/compiler/letConstInCaseClauses.ts(21,5): error TS2304: Cannot find name 'console'. ==== tests/cases/compiler/letConstInCaseClauses.ts (2 errors) ==== var x = 10; var y = 20; { let x = 1; let y = 2; console.log(x) ~~~~~~~ !!! error TS2304: Cannot find name 'console'. switch (x) { case 10: let x = 20; } switch (y) { case 10: let y = 20; } } { const x = 1; const y = 2; console.log(x) ~~~~~~~ !!! error TS2304: Cannot find name 'console'. switch (x) { case 10: const x = 20; } switch (y) { case 10: const y = 20; } }