mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
2.0 KiB
Diff
32 lines
2.0 KiB
Diff
--- old.classSideInheritance3.errors.txt
|
|
+++ new.classSideInheritance3.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
classSideInheritance3.ts(16,5): error TS2322: Type 'typeof B' is not assignable to type 'typeof A'.
|
|
- Types of construct signatures are incompatible.
|
|
- Type 'new (x: string, data: string) => B' is not assignable to type 'new (x: string) => A'.
|
|
- Target signature provides too few arguments. Expected 2 or more, but got 1.
|
|
+ Target signature provides too few arguments. Expected 2 or more, but got 1.
|
|
classSideInheritance3.ts(17,5): error TS2322: Type 'typeof B' is not assignable to type 'new (x: string) => A'.
|
|
- Types of construct signatures are incompatible.
|
|
- Type 'new (x: string, data: string) => B' is not assignable to type 'new (x: string) => A'.
|
|
- Target signature provides too few arguments. Expected 2 or more, but got 1.
|
|
+ Target signature provides too few arguments. Expected 2 or more, but got 1.
|
|
|
|
|
|
==== classSideInheritance3.ts (2 errors) ====
|
|
@@= skipped -26, +22 lines =@@
|
|
var r1: typeof A = B; // error
|
|
~~
|
|
!!! error TS2322: Type 'typeof B' is not assignable to type 'typeof A'.
|
|
-!!! error TS2322: Types of construct signatures are incompatible.
|
|
-!!! error TS2322: Type 'new (x: string, data: string) => B' is not assignable to type 'new (x: string) => A'.
|
|
-!!! error TS2322: Target signature provides too few arguments. Expected 2 or more, but got 1.
|
|
+!!! error TS2322: Target signature provides too few arguments. Expected 2 or more, but got 1.
|
|
var r2: new (x: string) => A = B; // error
|
|
~~
|
|
!!! error TS2322: Type 'typeof B' is not assignable to type 'new (x: string) => A'.
|
|
-!!! error TS2322: Types of construct signatures are incompatible.
|
|
-!!! error TS2322: Type 'new (x: string, data: string) => B' is not assignable to type 'new (x: string) => A'.
|
|
-!!! error TS2322: Target signature provides too few arguments. Expected 2 or more, but got 1.
|
|
+!!! error TS2322: Target signature provides too few arguments. Expected 2 or more, but got 1.
|
|
var r3: typeof A = C; // ok
|