TypeScript/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts
2015-12-02 13:43:06 -08:00

22 lines
309 B
TypeScript

// @target: es6
// Should be an error
for (let let of [1,2,3]) {}
for (const let of [1,2,3]) {}
for (let let in [1,2,3]) {}
for (const let in [1,2,3]) {}
{
for (let let of [1,2,3]) {}
for (const let of [1,2,3]) {}
for (let let in [1,2,3]) {}
for (const let in [1,2,3]) {}
}