Debian Codegraph @

packages/babel-plugin-proposal-private-methods/test/fixtures/private-static-method-privateFieldsAsProperties/super/exec.js

raw
1 class Base {
2 static basePublicStaticMethod() {
3 return 'good';
4 }
5 }
6
7 class Sub extends Base {
8 static basePublicStaticMethod() {
9 return 'bad';
10 }
11
12 static #subStaticPrivateMethod() {
13 return super.basePublicStaticMethod();
14 }
15
16 static check() {
17 return Sub.#subStaticPrivateMethod();
18 }
19 }
20
21 expect(Sub.check()).toEqual('good');