mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
460 B
Plaintext
15 lines
460 B
Plaintext
extendPrivateConstructorClass.ts(7,17): error TS2675: Cannot extend a class 'abc.XYZ'. Class constructor is marked as private.
|
|
|
|
|
|
==== extendPrivateConstructorClass.ts (1 errors) ====
|
|
declare namespace abc {
|
|
class XYZ {
|
|
private constructor();
|
|
}
|
|
}
|
|
|
|
class C extends abc.XYZ {
|
|
~~~~~~~
|
|
!!! error TS2675: Cannot extend a class 'abc.XYZ'. Class constructor is marked as private.
|
|
}
|
|
|