TypeScript/tests/cases/compiler/invalidLetInForOfAndForIn_ES5.ts

11 lines
210 B
TypeScript
Raw Normal View History

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