19 lines
No EOL
550 B
Text
19 lines
No EOL
550 B
Text
==== tests/cases/compiler/derivedClassOverridesPrivateFunction1.ts (1 errors) ====
|
|
class BaseClass {
|
|
constructor() {
|
|
this._init();
|
|
}
|
|
private _init() {
|
|
}
|
|
}
|
|
class DerivedClass extends BaseClass {
|
|
~~~~~~~~~~~~
|
|
!!! Class 'DerivedClass' incorrectly extends base class 'BaseClass':
|
|
!!! Types have separate declarations of a private property '_init'.
|
|
constructor() {
|
|
super();
|
|
}
|
|
private _init() {
|
|
}
|
|
}
|
|
new DerivedClass(); |