TypeScript/tests/cases/compiler/letInLetConstDeclOfForOfAndForIn_ES6.ts

22 lines
309 B
TypeScript
Raw Normal View History

2015-12-02 22:43:06 +01:00
// @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]) {}
}