Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/inheritedConstructorWithRestParams2.errors.txt.diff

43 lines
2.9 KiB
Diff

--- old.inheritedConstructorWithRestParams2.errors.txt
+++ new.inheritedConstructorWithRestParams2.errors.txt
@@= skipped -0, +0 lines =@@
inheritedConstructorWithRestParams2.ts(32,13): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
-inheritedConstructorWithRestParams2.ts(33,5): error TS2769: No overload matches this call.
- Overload 1 of 3, '(x: string, ...y: number[]): Derived', gave the following error.
- Argument of type 'string' is not assignable to parameter of type 'number'.
- Overload 2 of 3, '(x1: string, x2: string, ...y: number[]): Derived', gave the following error.
+inheritedConstructorWithRestParams2.ts(33,17): error TS2769: No overload matches this call.
+ The last overload gave the following error.
Argument of type 'number' is not assignable to parameter of type 'string'.
-inheritedConstructorWithRestParams2.ts(34,5): error TS2769: No overload matches this call.
- Overload 1 of 3, '(x: string, ...y: number[]): Derived', gave the following error.
- Argument of type 'string' is not assignable to parameter of type 'number'.
- Overload 2 of 3, '(x1: string, x2: string, ...y: number[]): Derived', gave the following error.
+inheritedConstructorWithRestParams2.ts(34,17): error TS2769: No overload matches this call.
+ The last overload gave the following error.
Argument of type 'number' is not assignable to parameter of type 'string'.
@@= skipped -46, +42 lines =@@
~
!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
new Derived("", 3, "", 3);
- ~~~~~~~
+ ~
!!! error TS2769: No overload matches this call.
-!!! error TS2769: Overload 1 of 3, '(x: string, ...y: number[]): Derived', gave the following error.
-!!! error TS2769: Argument of type 'string' is not assignable to parameter of type 'number'.
-!!! error TS2769: Overload 2 of 3, '(x1: string, x2: string, ...y: number[]): Derived', gave the following error.
+!!! error TS2769: The last overload gave the following error.
!!! error TS2769: Argument of type 'number' is not assignable to parameter of type 'string'.
+!!! related TS2771 inheritedConstructorWithRestParams2.ts:13:5: The last overload is declared here.
new Derived("", 3, "", "");
- ~~~~~~~
+ ~
!!! error TS2769: No overload matches this call.
-!!! error TS2769: Overload 1 of 3, '(x: string, ...y: number[]): Derived', gave the following error.
-!!! error TS2769: Argument of type 'string' is not assignable to parameter of type 'number'.
-!!! error TS2769: Overload 2 of 3, '(x1: string, x2: string, ...y: number[]): Derived', gave the following error.
+!!! error TS2769: The last overload gave the following error.
!!! error TS2769: Argument of type 'number' is not assignable to parameter of type 'string'.
+!!! related TS2771 inheritedConstructorWithRestParams2.ts:13:5: The last overload is declared here.