8 lines
235 B
Plaintext
8 lines
235 B
Plaintext
==== tests/cases/compiler/breakNotInIterationOrSwitchStatement2.ts (1 errors) ====
|
|
while (true) {
|
|
function f() {
|
|
break;
|
|
~~~~~~
|
|
!!! error TS1107: Jump target cannot cross function boundary.
|
|
}
|
|
} |