Accept new baselines

This commit is contained in:
Anders Hejlsberg
2018-06-07 12:24:15 -07:00
parent 8cd8edbe2c
commit 43bfccfd08

View File

@@ -1,8 +1,11 @@
tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts(1,33): error TS2501: A rest element cannot contain a binding pattern.
tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts(2,1): error TS2554: Expected 2 arguments, but got 1.
==== tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts (1 errors) ====
==== tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts (2 errors) ====
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { }
~~~~~~~~~~~~~~~~~~~~
!!! error TS2501: A rest element cannot contain a binding pattern.
takeFirstTwoEntries(new Map([["", 0], ["hello", 1]]));
takeFirstTwoEntries(new Map([["", 0], ["hello", 1]]));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2554: Expected 2 arguments, but got 1.