TypeScript/tests/cases/conformance/es6/variableDeclarations/VariableDeclaration13_es6.ts

6 lines
250 B
TypeScript
Raw Normal View History

// @target:es6
// An ExpressionStatement cannot start with the two token sequence `let [` because
// that would make it ambiguous with a `let` LexicalDeclaration whose first LexicalBinding was an ArrayBindingPattern.
var let: any;
let[0] = 100;