Files
tsgo/testdata/baselines/reference/submodule/compiler/assignmentCompatability45.errors.txt

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.