mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
52 lines
3.0 KiB
Diff
52 lines
3.0 KiB
Diff
--- old.heterogeneousArrayAndOverloads.errors.txt
|
|
+++ new.heterogeneousArrayAndOverloads.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
-heterogeneousArrayAndOverloads.ts(9,26): error TS2769: No overload matches this call.
|
|
- Overload 1 of 2, '(arg1: number[]): any', gave the following error.
|
|
- Type 'string' is not assignable to type 'number'.
|
|
-
|
|
-
|
|
-==== heterogeneousArrayAndOverloads.ts (1 errors) ====
|
|
+heterogeneousArrayAndOverloads.ts(9,20): error TS2769: No overload matches this call.
|
|
+ The last overload gave the following error.
|
|
+ Type 'number' is not assignable to type 'string'.
|
|
+heterogeneousArrayAndOverloads.ts(9,23): error TS2769: No overload matches this call.
|
|
+ The last overload gave the following error.
|
|
+ Type 'number' is not assignable to type 'string'.
|
|
+heterogeneousArrayAndOverloads.ts(9,32): error TS2769: No overload matches this call.
|
|
+ The last overload gave the following error.
|
|
+ Type 'number' is not assignable to type 'string'.
|
|
+
|
|
+
|
|
+==== heterogeneousArrayAndOverloads.ts (3 errors) ====
|
|
class arrTest {
|
|
test(arg1: number[]);
|
|
test(arg1: string[]);
|
|
@@= skipped -12, +18 lines =@@
|
|
this.test(["hi"]);
|
|
this.test([]);
|
|
this.test([1, 2, "hi", 5]); // Error
|
|
- ~~~~
|
|
-!!! error TS2769: No overload matches this call.
|
|
-!!! error TS2769: Overload 1 of 2, '(arg1: number[]): any', gave the following error.
|
|
-!!! error TS2769: Type 'string' is not assignable to type 'number'.
|
|
+ ~
|
|
+!!! error TS2769: No overload matches this call.
|
|
+!!! error TS2769: The last overload gave the following error.
|
|
+!!! error TS2769: Type 'number' is not assignable to type 'string'.
|
|
+!!! related TS2771 heterogeneousArrayAndOverloads.ts:3:5: The last overload is declared here.
|
|
+!!! related TS2793 heterogeneousArrayAndOverloads.ts:4:5: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
|
|
+ ~
|
|
+!!! error TS2769: No overload matches this call.
|
|
+!!! error TS2769: The last overload gave the following error.
|
|
+!!! error TS2769: Type 'number' is not assignable to type 'string'.
|
|
+!!! related TS2771 heterogeneousArrayAndOverloads.ts:3:5: The last overload is declared here.
|
|
+!!! related TS2793 heterogeneousArrayAndOverloads.ts:4:5: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
|
|
+ ~
|
|
+!!! error TS2769: No overload matches this call.
|
|
+!!! error TS2769: The last overload gave the following error.
|
|
+!!! error TS2769: Type 'number' is not assignable to type 'string'.
|
|
+!!! related TS2771 heterogeneousArrayAndOverloads.ts:3:5: The last overload is declared here.
|
|
!!! related TS2793 heterogeneousArrayAndOverloads.ts:4:5: The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
|
|
}
|
|
}
|