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