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

20 lines
729 B
Plaintext

classExtendsNull2.ts(5,7): error TS2417: Class static side 'typeof C' incorrectly extends base class static side 'null'.
classExtendsNull2.ts(7,5): error TS17005: A constructor cannot contain a 'super' call when its class extends 'null'.
==== classExtendsNull2.ts (2 errors) ====
// https://github.com/microsoft/TypeScript/issues/55499
interface Base {}
class C extends null {
~
!!! error TS2417: Class static side 'typeof C' incorrectly extends base class static side 'null'.
constructor() {
super();
~~~~~~~
!!! error TS17005: A constructor cannot contain a 'super' call when its class extends 'null'.
}
}
interface C extends Base {}