mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
1.5 KiB
Diff
24 lines
1.5 KiB
Diff
--- old.overloadResolutionClassConstructors.errors.txt
|
|
+++ new.overloadResolutionClassConstructors.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
overloadResolutionClassConstructors.ts(27,9): error TS2769: No overload matches this call.
|
|
- Overload 1 of 2, '(s: string): fn1', gave the following error.
|
|
- Argument of type '{}' is not assignable to parameter of type 'string'.
|
|
- Overload 2 of 2, '(s: number): fn1', gave the following error.
|
|
+ The last overload gave the following error.
|
|
Argument of type '{}' is not assignable to parameter of type 'number'.
|
|
overloadResolutionClassConstructors.ts(60,9): error TS2558: Expected 3 type arguments, but got 1.
|
|
overloadResolutionClassConstructors.ts(61,9): error TS2558: Expected 3 type arguments, but got 2.
|
|
@@= skipped -47, +45 lines =@@
|
|
new fn1({}); // Error
|
|
~~
|
|
!!! error TS2769: No overload matches this call.
|
|
-!!! error TS2769: Overload 1 of 2, '(s: string): fn1', gave the following error.
|
|
-!!! error TS2769: Argument of type '{}' is not assignable to parameter of type 'string'.
|
|
-!!! error TS2769: Overload 2 of 2, '(s: number): fn1', gave the following error.
|
|
+!!! error TS2769: The last overload gave the following error.
|
|
!!! error TS2769: Argument of type '{}' is not assignable to parameter of type 'number'.
|
|
+!!! related TS2771 overloadResolutionClassConstructors.ts:20:5: The last overload is declared here.
|
|
|
|
// Generic and non - generic overload where generic overload is the only candidate when called with type arguments
|
|
class fn2<T> {
|