mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
529 B
Plaintext
18 lines
529 B
Plaintext
classExtendsNull.ts(3,9): error TS17005: A constructor cannot contain a 'super' call when its class extends 'null'.
|
|
|
|
|
|
==== classExtendsNull.ts (1 errors) ====
|
|
class C extends null {
|
|
constructor() {
|
|
super();
|
|
~~~~~~~
|
|
!!! error TS17005: A constructor cannot contain a 'super' call when its class extends 'null'.
|
|
return Object.create(null);
|
|
}
|
|
}
|
|
|
|
class D extends null {
|
|
constructor() {
|
|
return Object.create(null);
|
|
}
|
|
} |