mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
50 lines
3.3 KiB
Diff
50 lines
3.3 KiB
Diff
--- old.specializedSignatureAsCallbackParameter1.errors.txt
|
|
+++ new.specializedSignatureAsCallbackParameter1.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-specializedSignatureAsCallbackParameter1.ts(7,1): error TS2769: No overload matches this call.
|
|
- Overload 1 of 2, '(a: number, cb: (x: number) => number): any', gave the following error.
|
|
- Argument of type '(x: string) => number' is not assignable to parameter of type '(x: number) => number'.
|
|
- Types of parameters 'x' and 'x' are incompatible.
|
|
- Type 'number' is not assignable to type 'string'.
|
|
- Overload 2 of 2, '(a: string, cb: (x: number) => number): any', gave the following error.
|
|
+specializedSignatureAsCallbackParameter1.ts(7,4): 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'.
|
|
-specializedSignatureAsCallbackParameter1.ts(8,1): error TS2769: No overload matches this call.
|
|
- Overload 1 of 2, '(a: number, cb: (x: number) => number): any', gave the following error.
|
|
- Argument of type '(x: "hm") => number' is not assignable to parameter of type '(x: number) => number'.
|
|
- Types of parameters 'x' and 'x' are incompatible.
|
|
- Type 'number' is not assignable to type '"hm"'.
|
|
- Overload 2 of 2, '(a: string, cb: (x: number) => number): any', gave the following error.
|
|
+specializedSignatureAsCallbackParameter1.ts(8,4): 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 -21, +13 lines =@@
|
|
}
|
|
// both are errors
|
|
x3(1, (x: string) => 1);
|
|
- ~~
|
|
+ ~
|
|
!!! error TS2769: No overload matches this call.
|
|
-!!! error TS2769: Overload 1 of 2, '(a: number, cb: (x: number) => number): any', gave the following error.
|
|
-!!! error TS2769: Argument of type '(x: string) => number' is not assignable to parameter of type '(x: number) => number'.
|
|
-!!! error TS2769: Types of parameters 'x' and 'x' are incompatible.
|
|
-!!! error TS2769: Type 'number' is not assignable to type 'string'.
|
|
-!!! error TS2769: Overload 2 of 2, '(a: string, cb: (x: number) => number): any', 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 specializedSignatureAsCallbackParameter1.ts:2:10: The last overload is declared here.
|
|
x3(1, (x: 'hm') => 1);
|
|
- ~~
|
|
+ ~
|
|
!!! error TS2769: No overload matches this call.
|
|
-!!! error TS2769: Overload 1 of 2, '(a: number, cb: (x: number) => number): any', gave the following error.
|
|
-!!! error TS2769: Argument of type '(x: "hm") => number' is not assignable to parameter of type '(x: number) => number'.
|
|
-!!! error TS2769: Types of parameters 'x' and 'x' are incompatible.
|
|
-!!! error TS2769: Type 'number' is not assignable to type '"hm"'.
|
|
-!!! error TS2769: Overload 2 of 2, '(a: string, cb: (x: number) => number): any', 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 specializedSignatureAsCallbackParameter1.ts:2:10: The last overload is declared here.
|