10 lines
No EOL
428 B
Text
10 lines
No EOL
428 B
Text
tests/cases/conformance/es6/destructuring/restElementWithInitializer2.ts(3,7): error TS1186: A rest element cannot have an initializer.
|
|
|
|
|
|
==== tests/cases/conformance/es6/destructuring/restElementWithInitializer2.ts (1 errors) ====
|
|
var a: number[];
|
|
var x: number[];
|
|
[...x = a] = a; // Error, rest element cannot have initializer
|
|
~
|
|
!!! error TS1186: A rest element cannot have an initializer.
|
|
|