2015-03-26 01:36:47 +01:00
|
|
|
tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts(1,30): error TS2370: A rest parameter must be of an array type.
|
2015-04-10 03:19:25 +02:00
|
|
|
tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts(1,33): error TS2501: A rest element cannot contain a binding pattern.
|
2015-03-26 01:36:47 +01:00
|
|
|
|
|
|
|
|
2015-04-10 03:19:25 +02:00
|
|
|
==== tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts (2 errors) ====
|
2015-03-26 01:36:47 +01:00
|
|
|
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { }
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
!!! error TS2370: A rest parameter must be of an array type.
|
2015-04-10 03:19:25 +02:00
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
|
|
!!! error TS2501: A rest element cannot contain a binding pattern.
|
2015-03-26 01:36:47 +01:00
|
|
|
takeFirstTwoEntries(new Map([["", 0], ["hello", 1]]));
|