* Fix super method call in private instance method calling overridden method * Change return value in test fixtures * Update tests to verify that overridden method is not called
20 lines
304 B
JavaScript
20 lines
304 B
JavaScript
class Base {
|
|
static basePublicStaticMethod() {
|
|
return 'good';
|
|
}
|
|
}
|
|
|
|
class Sub extends Base {
|
|
static basePublicStaticMethod() {
|
|
return 'bad';
|
|
}
|
|
|
|
static #subStaticPrivateMethod() {
|
|
return super.basePublicStaticMethod();
|
|
}
|
|
|
|
static check() {
|
|
Sub.#subStaticPrivateMethod();
|
|
}
|
|
}
|