Skip to content

Commit

Permalink
update baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersn committed Apr 27, 2021
1 parent 30e131a commit 8a265fb
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions tests/baselines/reference/callOverload.errors.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tests/cases/conformance/expressions/functionCalls/callOverload.ts(7,7): error TS2554: Expected 1 arguments, but got 4.
tests/cases/conformance/expressions/functionCalls/callOverload.ts(8,15): error TS2554: Expected 2 arguments, but got 4.
tests/cases/conformance/expressions/functionCalls/callOverload.ts(10,1): error TS2555: Expected at least 1 arguments, but got 0.
tests/cases/conformance/expressions/functionCalls/callOverload.ts(11,10): error TS2557: Expected at least 1 arguments, but after 0, found a spread that must be passed to a rest parameter.
tests/cases/conformance/expressions/functionCalls/callOverload.ts(11,10): error TS2556: A spread must either have a tuple type or be passed to a rest parameter.


==== tests/cases/conformance/expressions/functionCalls/callOverload.ts (4 errors) ====
Expand All @@ -24,4 +24,4 @@ tests/cases/conformance/expressions/functionCalls/callOverload.ts(11,10): error
!!! related TS6210 tests/cases/conformance/expressions/functionCalls/callOverload.ts:3:27: An argument for 'a' was not provided.
withRest(...n);
~~~~
!!! error TS2557: Expected at least 1 arguments, but after 0, found a spread that must be passed to a rest parameter.
!!! error TS2556: A spread must either have a tuple type or be passed to a rest parameter.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tests/cases/compiler/functionParameterArityMismatch.ts(11,1): error TS2575: No o
tests/cases/compiler/functionParameterArityMismatch.ts(12,1): error TS2575: No overload expects 3 arguments, but overloads do exist that expect either 2 or 4 arguments.
tests/cases/compiler/functionParameterArityMismatch.ts(13,1): error TS2575: No overload expects 5 arguments, but overloads do exist that expect either 4 or 6 arguments.
tests/cases/compiler/functionParameterArityMismatch.ts(14,22): error TS2554: Expected 0-6 arguments, but got 7.
tests/cases/compiler/functionParameterArityMismatch.ts(15,4): error TS2556: Expected 0-6 arguments, but after 0, found a spread that must be passed to a rest parameter.
tests/cases/compiler/functionParameterArityMismatch.ts(15,4): error TS2556: A spread must either have a tuple type or be passed to a rest parameter.


==== tests/cases/compiler/functionParameterArityMismatch.ts (8 errors) ====
Expand Down Expand Up @@ -39,6 +39,6 @@ tests/cases/compiler/functionParameterArityMismatch.ts(15,4): error TS2556: Expe
~
!!! error TS2554: Expected 0-6 arguments, but got 7.
f2(...[1], 2, 3, 4, 5, 6);
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2556: Expected 0-6 arguments, but after 0, found a spread that must be passed to a rest parameter.
~~~~~~
!!! error TS2556: A spread must either have a tuple type or be passed to a rest parameter.

4 changes: 2 additions & 2 deletions tests/baselines/reference/iteratorSpreadInCall.errors.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tests/cases/conformance/es6/spread/iteratorSpreadInCall.ts(15,5): error TS2556: Expected 1 arguments, but after 0, found a spread that must be passed to a rest parameter.
tests/cases/conformance/es6/spread/iteratorSpreadInCall.ts(15,5): error TS2556: A spread must either have a tuple type or be passed to a rest parameter.


==== tests/cases/conformance/es6/spread/iteratorSpreadInCall.ts (1 errors) ====
Expand All @@ -18,4 +18,4 @@ tests/cases/conformance/es6/spread/iteratorSpreadInCall.ts(15,5): error TS2556:

foo(...new SymbolIterator);
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2556: Expected 1 arguments, but after 0, found a spread that must be passed to a rest parameter.
!!! error TS2556: A spread must either have a tuple type or be passed to a rest parameter.
4 changes: 2 additions & 2 deletions tests/baselines/reference/iteratorSpreadInCall10.errors.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tests/cases/conformance/es6/spread/iteratorSpreadInCall10.ts(15,5): error TS2556: Expected 1 arguments, but after 0, found a spread that must be passed to a rest parameter.
tests/cases/conformance/es6/spread/iteratorSpreadInCall10.ts(15,5): error TS2556: A spread must either have a tuple type or be passed to a rest parameter.


==== tests/cases/conformance/es6/spread/iteratorSpreadInCall10.ts (1 errors) ====
Expand All @@ -18,4 +18,4 @@ tests/cases/conformance/es6/spread/iteratorSpreadInCall10.ts(15,5): error TS2556

foo(...new SymbolIterator);
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2556: Expected 1 arguments, but after 0, found a spread that must be passed to a rest parameter.
!!! error TS2556: A spread must either have a tuple type or be passed to a rest parameter.
4 changes: 2 additions & 2 deletions tests/baselines/reference/iteratorSpreadInCall2.errors.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tests/cases/conformance/es6/spread/iteratorSpreadInCall2.ts(15,5): error TS2556: Expected 1 arguments, but after 0, found a spread that must be passed to a rest parameter.
tests/cases/conformance/es6/spread/iteratorSpreadInCall2.ts(15,5): error TS2556: A spread must either have a tuple type or be passed to a rest parameter.


==== tests/cases/conformance/es6/spread/iteratorSpreadInCall2.ts (1 errors) ====
Expand All @@ -18,4 +18,4 @@ tests/cases/conformance/es6/spread/iteratorSpreadInCall2.ts(15,5): error TS2556:

foo(...new SymbolIterator);
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2556: Expected 1 arguments, but after 0, found a spread that must be passed to a rest parameter.
!!! error TS2556: A spread must either have a tuple type or be passed to a rest parameter.
4 changes: 2 additions & 2 deletions tests/baselines/reference/iteratorSpreadInCall4.errors.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tests/cases/conformance/es6/spread/iteratorSpreadInCall4.ts(15,5): error TS2557: Expected at least 1 arguments, but after 0, found a spread that must be passed to a rest parameter.
tests/cases/conformance/es6/spread/iteratorSpreadInCall4.ts(15,5): error TS2556: A spread must either have a tuple type or be passed to a rest parameter.


==== tests/cases/conformance/es6/spread/iteratorSpreadInCall4.ts (1 errors) ====
Expand All @@ -18,4 +18,4 @@ tests/cases/conformance/es6/spread/iteratorSpreadInCall4.ts(15,5): error TS2557:

foo(...new SymbolIterator);
~~~~~~~~~~~~~~~~~~~~~
!!! error TS2557: Expected at least 1 arguments, but after 0, found a spread that must be passed to a rest parameter.
!!! error TS2556: A spread must either have a tuple type or be passed to a rest parameter.
4 changes: 2 additions & 2 deletions tests/baselines/reference/noImplicitAnyLoopCrash.errors.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tests/cases/compiler/noImplicitAnyLoopCrash.ts(4,16): error TS2556: Expected 0 arguments, but after 0, found a spread that must be passed to a rest parameter.
tests/cases/compiler/noImplicitAnyLoopCrash.ts(4,16): error TS2556: A spread must either have a tuple type or be passed to a rest parameter.
tests/cases/compiler/noImplicitAnyLoopCrash.ts(4,19): error TS2461: Type 'number' is not an array type.


Expand All @@ -8,7 +8,7 @@ tests/cases/compiler/noImplicitAnyLoopCrash.ts(4,19): error TS2461: Type 'number
while (1) {
bar = ~foo(...bar);
~~~~~~
!!! error TS2556: Expected 0 arguments, but after 0, found a spread that must be passed to a rest parameter.
!!! error TS2556: A spread must either have a tuple type or be passed to a rest parameter.
~~~
!!! error TS2461: Type 'number' is not an array type.
}
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/readonlyRestParameters.errors.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tests/cases/conformance/es6/restParameters/readonlyRestParameters.ts(8,8): error TS2556: Expected 2 arguments, but after 0, found a spread that must be passed to a rest parameter.
tests/cases/conformance/es6/restParameters/readonlyRestParameters.ts(8,8): error TS2556: A spread must either have a tuple type or be passed to a rest parameter.
tests/cases/conformance/es6/restParameters/readonlyRestParameters.ts(20,15): error TS2554: Expected 2 arguments, but got 3.
tests/cases/conformance/es6/restParameters/readonlyRestParameters.ts(25,5): error TS2542: Index signature in type 'readonly string[]' only permits reading.

Expand All @@ -13,7 +13,7 @@ tests/cases/conformance/es6/restParameters/readonlyRestParameters.ts(25,5): erro
function f1(...args: readonly string[]) {
f0(...args); // Error
~~~~~~~
!!! error TS2556: Expected 2 arguments, but after 0, found a spread that must be passed to a rest parameter.
!!! error TS2556: A spread must either have a tuple type or be passed to a rest parameter.
f1('abc', 'def');
f1('abc', ...args);
f1(...args);
Expand Down

0 comments on commit 8a265fb

Please sign in to comment.