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

11 lines
210 B
TypeScript

// @target: es6
// This should be an error
// More details: http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements
var let = 10;
for (let of [1,2,3]) {}
for (let in [1,2,3]) {}