TypeScript/tests/cases/compiler/capturedLetConstInLoop11_ES6.ts
2016-01-14 23:20:21 -08:00

14 lines
197 B
TypeScript

// @target: ES6
for (;;) {
let x = 1;
() => x;
}
function foo() {
for (;;) {
const a = 0;
switch(a) {
case 0: return () => a;
}
}
}