Debian Codegraph @

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

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