15 lines
266 B
TypeScript
15 lines
266 B
TypeScript
//// [invalidSwitchBreakStatement.ts]
|
|
// break is not allowed in a switch statement
|
|
|
|
switch (12) {
|
|
case 5:
|
|
break;
|
|
}
|
|
|
|
|
|
//// [invalidSwitchBreakStatement.js]
|
|
// break is not allowed in a switch statement
|
|
switch (12) {
|
|
case 5:
|
|
break;
|
|
}
|