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

32 lines
504 B
TypeScript

//// [tests/cases/compiler/capturedLetConstInLoop11.ts] ////
//// [capturedLetConstInLoop11.ts]
for (;;) {
let x = 1;
() => x;
}
function foo() {
for (;;) {
const a = 0;
switch(a) {
case 0: return () => a;
}
}
}
//// [capturedLetConstInLoop11.js]
"use strict";
for (;;) {
let x = 1;
() => x;
}
function foo() {
for (;;) {
const a = 0;
switch (a) {
case 0: return () => a;
}
}
}