TypeScript/tests/cases/compiler/downlevelLetConst18.ts
Vladimir Matveev 904d116f9a added tests
2015-02-26 16:53:25 -08:00

30 lines
379 B
TypeScript

// @target:es5
'use strict'
for (let x; ;) {
function foo() { x };
}
for (let x; ;) {
function foo() { x };
}
for (let x; ;) {
(() => { x })();
}
for (const x = 1; ;) {
(() => { x })();
}
for (let x; ;) {
({ foo() { x }})
}
for (let x; ;) {
({ get foo() { return x } })
}
for (let x; ;) {
({ set foo(v) { x } })
}