mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
438 B
TypeScript
20 lines
438 B
TypeScript
//// [tests/cases/compiler/blockScopedBindingsReassignedInLoop1.ts] ////
|
|
|
|
//// [blockScopedBindingsReassignedInLoop1.ts]
|
|
declare function use(n: number): void;
|
|
(function () {
|
|
'use strict'
|
|
for (let i = 0; i < 9; ++i) {
|
|
(() => use(++i))();
|
|
}
|
|
})();
|
|
|
|
//// [blockScopedBindingsReassignedInLoop1.js]
|
|
"use strict";
|
|
(function () {
|
|
'use strict';
|
|
for (let i = 0; i < 9; ++i) {
|
|
(() => use(++i))();
|
|
}
|
|
})();
|