mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
577 B
Plaintext
16 lines
577 B
Plaintext
assignmentCompatability45.ts(7,7): error TS2322: Type 'typeof B' is not assignable to type 'typeof A'.
|
|
Target signature provides too few arguments. Expected 1 or more, but got 0.
|
|
|
|
|
|
==== assignmentCompatability45.ts (1 errors) ====
|
|
abstract class A {}
|
|
class B extends A {
|
|
constructor(x: number) {
|
|
super();
|
|
}
|
|
}
|
|
const b: typeof A = B;
|
|
~
|
|
!!! error TS2322: Type 'typeof B' is not assignable to type 'typeof A'.
|
|
!!! error TS2322: Target signature provides too few arguments. Expected 1 or more, but got 0.
|
|
|