mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
1.5 KiB
Diff
25 lines
1.5 KiB
Diff
--- old.assignmentCompatWithOverloads.errors.txt
|
|
+++ new.assignmentCompatWithOverloads.errors.txt
|
|
@@= skipped -8, +8 lines =@@
|
|
assignmentCompatWithOverloads.ts(21,1): error TS2322: Type '{ (x: string): string; (x: number): number; }' is not assignable to type '(s1: string) => number'.
|
|
Type 'string' is not assignable to type 'number'.
|
|
assignmentCompatWithOverloads.ts(30,1): error TS2322: Type 'typeof C' is not assignable to type 'new (x: number) => void'.
|
|
- Types of construct signatures are incompatible.
|
|
- Type 'new (x: string) => C' is not assignable to type 'new (x: number) => void'.
|
|
- Types of parameters 'x' and 'x' are incompatible.
|
|
- Type 'number' is not assignable to type 'string'.
|
|
+ Types of parameters 'x' and 'x' are incompatible.
|
|
+ Type 'number' is not assignable to type 'string'.
|
|
|
|
|
|
==== assignmentCompatWithOverloads.ts (7 errors) ====
|
|
@@= skipped -55, +53 lines =@@
|
|
d = C; // Error
|
|
~
|
|
!!! error TS2322: Type 'typeof C' is not assignable to type 'new (x: number) => void'.
|
|
-!!! error TS2322: Types of construct signatures are incompatible.
|
|
-!!! error TS2322: Type 'new (x: string) => C' is not assignable to type 'new (x: number) => void'.
|
|
-!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
|
|
-!!! error TS2322: Type 'number' is not assignable to type 'string'.
|
|
+!!! error TS2322: Types of parameters 'x' and 'x' are incompatible.
|
|
+!!! error TS2322: Type 'number' is not assignable to type 'string'.
|