TypeScript/tests/baselines/reference/parser_breakTarget5.errors.txt
2015-10-03 00:20:15 -07:00

17 lines
667 B
Plaintext

tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakTarget5.ts(1,1): error TS7028: Unused label.
tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakTarget5.ts(5,7): error TS1107: Jump target cannot cross function boundary.
==== tests/cases/conformance/parser/ecmascript5/Statements/BreakStatements/parser_breakTarget5.ts (2 errors) ====
target:
~~~~~~
!!! error TS7028: Unused label.
while (true) {
function f() {
while (true) {
break target;
~~~~~~~~~~~~~
!!! error TS1107: Jump target cannot cross function boundary.
}
}
}