TypeScript/tests/baselines/reference/iterableArrayPattern25.errors.txt
2015-03-25 18:04:11 -07:00

8 lines
468 B
Plaintext

tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts(1,30): error TS2370: A rest parameter must be of an array type.
==== tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts (1 errors) ====
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { }
~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2370: A rest parameter must be of an array type.
takeFirstTwoEntries(new Map([["", 0], ["hello", 1]]));