swc/crates/swc_ecma_parser/tests/tsc/forContinueStatements.ts

39 lines
398 B
TypeScript

// @allowUnreachableCode: true
for (; ;) {
continue;
}
ONE:
for (; ;) {
continue ONE;
}
TWO:
THREE:
for (; ;) {
continue THREE;
}
FOUR:
for (; ;) {
FIVE:
for (; ;) {
continue FOUR;
}
}
for (; ;) {
SIX:
for (; ;) continue SIX;
}
SEVEN:
for (; ;) for (; ;) for (; ;) continue SEVEN;
EIGHT:
for (; ;) {
var fn = function () { }
continue EIGHT;
}