mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
351 B
Plaintext
13 lines
351 B
Plaintext
invalidSwitchBreakStatement.ts(4,10): error TS2678: Type '5' is not comparable to type '12'.
|
|
|
|
|
|
==== invalidSwitchBreakStatement.ts (1 errors) ====
|
|
// break is not allowed in a switch statement
|
|
|
|
switch (12) {
|
|
case 5:
|
|
~
|
|
!!! error TS2678: Type '5' is not comparable to type '12'.
|
|
break;
|
|
}
|
|
|