12 lines
No EOL
723 B
Text
12 lines
No EOL
723 B
Text
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
|
|
|