mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
19 lines
221 B
JavaScript
19 lines
221 B
JavaScript
class Foo {
|
|
#foo = 1;
|
|
|
|
test() {
|
|
class Nested extends class {
|
|
[this.#foo] = 2;
|
|
} {
|
|
#foo = 3;
|
|
}
|
|
|
|
return new Nested();
|
|
}
|
|
}
|
|
|
|
const f = new Foo();
|
|
expect(() => {
|
|
f.test();
|
|
}).not.toThrow();
|