12 lines
723 B
Plaintext
12 lines
723 B
Plaintext
tests/cases/conformance/es6/destructuring/restElementMustBeLast.ts(1,9): error TS2462: A rest element must be last in an array destructuring pattern
|
|
tests/cases/conformance/es6/destructuring/restElementMustBeLast.ts(2,2): error TS2462: A rest element must be last in an array destructuring pattern
|
|
|
|
|
|
==== tests/cases/conformance/es6/destructuring/restElementMustBeLast.ts (2 errors) ====
|
|
var [...a, x] = [1, 2, 3]; // Error, rest must be last element
|
|
~
|
|
!!! error TS2462: A rest element must be last in an array destructuring pattern
|
|
[...a, x] = [1, 2, 3]; // Error, rest must be last element
|
|
~~~~
|
|
!!! error TS2462: A rest element must be last in an array destructuring pattern
|
|
|