Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/multiple/exec.js

raw
1 class Foo {
2 #x = 0;
3 #y = this.#x + 1;
4
5 test() {
6 return this.#y;
7 }
8 }
9
10 const f = new Foo();
11 expect(f.test()).toBe(1);