mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Added tests for ASI and element access with 'let'.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// @target:es6
|
||||
|
||||
let
|
||||
x
|
||||
@@ -0,0 +1,6 @@
|
||||
// @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;
|
||||
@@ -0,0 +1,2 @@
|
||||
var let: any = {};
|
||||
(let[0] = 100);
|
||||
Reference in New Issue
Block a user