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.assignmentCompatability44.errors.txt
|
|
+++ new.assignmentCompatability44.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
assignmentCompatability44.ts(5,7): error TS2322: Type 'typeof Foo' is not assignable to type 'new () => Foo'.
|
|
- Types of construct signatures are incompatible.
|
|
- Type 'new (x: number) => Foo' is not assignable to type 'new () => Foo'.
|
|
- 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.
|
|
|
|
|
|
==== assignmentCompatability44.ts (1 errors) ====
|
|
@@= skipped -11, +9 lines =@@
|
|
const foo: { new(): Foo } = Foo;
|
|
~~~
|
|
!!! error TS2322: Type 'typeof Foo' is not assignable to type 'new () => Foo'.
|
|
-!!! error TS2322: Types of construct signatures are incompatible.
|
|
-!!! error TS2322: Type 'new (x: number) => Foo' is not assignable to type 'new () => Foo'.
|
|
-!!! 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.
|
|
|