mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
--- old.assignmentCompatability45.errors.txt
|
|
+++ new.assignmentCompatability45.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
assignmentCompatability45.ts(7,7): error TS2322: Type 'typeof B' is not assignable to type 'typeof A'.
|
|
- Types of construct signatures are incompatible.
|
|
- Type 'new (x: number) => B' is not assignable to type 'abstract new () => A'.
|
|
- Target signature provides too few arguments. Expected 1 or more, but got 0.
|
|
+ Target signature provides too few arguments. Expected 1 or more, but got 0.
|
|
|
|
|
|
==== assignmentCompatability45.ts (1 errors) ====
|
|
@@= skipped -13, +11 lines =@@
|
|
const b: typeof A = B;
|
|
~
|
|
!!! 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: number) => B' is not assignable to type 'abstract new () => A'.
|
|
-!!! error TS2322: Target signature provides too few arguments. Expected 1 or more, but got 0.
|
|
+!!! error TS2322: Target signature provides too few arguments. Expected 1 or more, but got 0.
|
|
|