2014-12-17 22:22:04 +01:00
|
|
|
tests/cases/conformance/es6/destructuring/restElementWithInitializer1.ts(2,11): error TS1186: A rest element cannot have an initializer.
|
2014-12-12 23:34:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
==== tests/cases/conformance/es6/destructuring/restElementWithInitializer1.ts (1 errors) ====
|
|
|
|
var a: number[];
|
|
|
|
var [...x = a] = a; // Error, rest element cannot have initializer
|
|
|
|
~
|
2014-12-17 22:22:04 +01:00
|
|
|
!!! error TS1186: A rest element cannot have an initializer.
|
2014-12-12 23:34:12 +01:00
|
|
|
|