We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 225d6d6 commit 7a9c11cCopy full SHA for 7a9c11c
1 file changed
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts
@@ -0,0 +1,4 @@
1
+const [a, b = a] = [1]; // ok
2
+const [a, b = a, c = c] = [1]; // error for c
3
+const [a, b = a, c = d, d = a] = [1]; // error for c
4
+
0 commit comments