Files
tsgo/testdata/baselines/reference/submodule/compiler/blockScopedBindingsReassignedInLoop5.js

22 lines
456 B
TypeScript

//// [tests/cases/compiler/blockScopedBindingsReassignedInLoop5.ts] ////
//// [blockScopedBindingsReassignedInLoop5.ts]
for (let x = 1, y = 2; x < y; ++x, --y) {
let a = () => x++ + y++;
if (x == 1)
break;
else
y = 5;
}
//// [blockScopedBindingsReassignedInLoop5.js]
"use strict";
for (let x = 1, y = 2; x < y; ++x, --y) {
let a = () => x++ + y++;
if (x == 1)
break;
else
y = 5;
}