TypeScript/tests/cases/compiler/unusedSwitchStatment.ts
Mohamed Hegazy 54b4bef8c8 Handel Swtich statements
check for locals on for statments
only mark private properties
2016-06-30 15:18:17 -07:00

21 lines
No EOL
276 B
TypeScript

//@noUnusedLocals:true
//@noUnusedParameters:true
switch (1) {
case 0:
let x;
break;
case 1:
const c = 1;
break;
default:
let z = 2;
}
switch (2) {
case 0:
let x;
case 1:
x++;
}