mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
456 B
TypeScript
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;
|
|
}
|