Debian Codegraph @

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

raw
1 class Cl {
2 static #privateStaticMethod() {
3 return 1017;
4 }
5
6 publicMethod(checked) {
7 return checked.#privateStaticMethod();
8 }
9 }
10
11 const cl = new Cl();
12 expect(cl.publicMethod(Cl)).toBe(1017);