Skip to content

Commit 0b0a91a

Browse files
committed
Accept new baselines
1 parent e239f86 commit 0b0a91a

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

tests/baselines/reference/callWithSpread2.errors.txt

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@ tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(22,1): erro
22
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(23,1): error TS2556: Expected 0 arguments, but got 1 or more.
33
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(26,5): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
44
Type 'string' is not assignable to type 'number'.
5-
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(27,5): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
6-
Type 'string' is not assignable to type 'number'.
5+
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(27,5): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
76
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(28,13): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
87
Type 'string' is not assignable to type 'number'.
9-
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(29,13): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
10-
Type 'string' is not assignable to type 'number'.
8+
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(29,13): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
119
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(30,11): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
1210
Type 'string' is not assignable to type 'number'.
13-
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(31,11): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
14-
Type 'string' is not assignable to type 'number'.
11+
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(31,11): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
1512
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(32,1): error TS2556: Expected 1-3 arguments, but got 0 or more.
1613
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(33,1): error TS2556: Expected 1-3 arguments, but got 0 or more.
17-
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(34,1): error TS2556: Expected 1-3 arguments, but got 0 or more.
14+
tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(34,8): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
1815

1916

2017
==== tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts (11 errors) ====
@@ -53,31 +50,28 @@ tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts(34,1): erro
5350
!!! error TS2345: Type 'string' is not assignable to type 'number'.
5451
all(...tuple)
5552
~~~~~~~~
56-
!!! error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
57-
!!! error TS2345: Type 'string' is not assignable to type 'number'.
53+
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
5854
prefix("b", ...mixed)
5955
~~~~~~~~
6056
!!! error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
6157
!!! error TS2345: Type 'string' is not assignable to type 'number'.
6258
prefix("c", ...tuple)
6359
~~~~~~~~
64-
!!! error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
65-
!!! error TS2345: Type 'string' is not assignable to type 'number'.
60+
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
6661
rest("e", ...mixed)
6762
~~~~~~~~
6863
!!! error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
6964
!!! error TS2345: Type 'string' is not assignable to type 'number'.
7065
rest("f", ...tuple)
7166
~~~~~~~~
72-
!!! error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'.
73-
!!! error TS2345: Type 'string' is not assignable to type 'number'.
67+
!!! error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
7468
prefix(...ns) // required parameters are required
7569
~~~~~~~~~~~~~
7670
!!! error TS2556: Expected 1-3 arguments, but got 0 or more.
7771
prefix(...mixed)
7872
~~~~~~~~~~~~~~~~
7973
!!! error TS2556: Expected 1-3 arguments, but got 0 or more.
8074
prefix(...tuple)
81-
~~~~~~~~~~~~~~~~
82-
!!! error TS2556: Expected 1-3 arguments, but got 0 or more.
75+
~~~~~~~~
76+
!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
8377

0 commit comments

Comments
 (0)