packages/babel-plugin-proposal-private-methods/test/fixtures/private-static-method-loose/super/input.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 | Sub.#subStaticPrivateMethod(); |
| 18 | } |
| 19 | } |