TypeScript/tests/cases/compiler/nestedBlockScopedBindings4.ts
2016-01-20 15:23:46 -08:00

40 lines
566 B
TypeScript

function a0() {
for (let x; x < 1;) {
x = x + 1;
}
for (let x;;) {
x = x + 2;
}
}
function a1() {
for (let x; x < 1;) {
x = x + 1;
() => x;
}
for (let x;;) {
x = x + 2;
}
}
function a2() {
for (let x; x < 1;) {
x = x + 1;
}
for (let x;;) {
x = x + 2;
() => x;
}
}
function a3() {
for (let x; x < 1;) {
x = x + 1;
() => x;
}
for (let x;;) {
x = x + 2;
() => x;
}
}