Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/nested-class-computed-redeclared/exec.js

raw
1 class Foo {
2 #foo = 1;
3
4 test() {
5 class Nested {
6 #foo = 2;
7
8 [this.#foo]() {
9 }
10 }
11
12 return new Nested();
13 }
14 }
15
16 const f = new Foo();
17 expect(() => {
18 f.test();
19 }).toThrow();