1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
=== tests/cases/compiler/capturedLetConstInLoop12.ts ===
(function() {
"use strict";
for (let i = 0; i < 4; i++) {
>i : Symbol(i, Decl(capturedLetConstInLoop12.ts, 3, 12))
>i : Symbol(i, Decl(capturedLetConstInLoop12.ts, 3, 12))
>i : Symbol(i, Decl(capturedLetConstInLoop12.ts, 3, 12))
(() => [i] = [i + 1])();
>i : Symbol(i, Decl(capturedLetConstInLoop12.ts, 3, 12))
>i : Symbol(i, Decl(capturedLetConstInLoop12.ts, 3, 12))
}
})();
(function() {
"use strict";
for (let i = 0; i < 4; i++) {
>i : Symbol(i, Decl(capturedLetConstInLoop12.ts, 11, 12))
>i : Symbol(i, Decl(capturedLetConstInLoop12.ts, 11, 12))
>i : Symbol(i, Decl(capturedLetConstInLoop12.ts, 11, 12))
(() => ({a:i} = {a:i + 1}))();
>a : Symbol(a, Decl(capturedLetConstInLoop12.ts, 12, 17))
>i : Symbol(i, Decl(capturedLetConstInLoop12.ts, 11, 12))
>a : Symbol(a, Decl(capturedLetConstInLoop12.ts, 12, 25))
>i : Symbol(i, Decl(capturedLetConstInLoop12.ts, 11, 12))
}
})();
|