mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
Co-authored-by: Nicolò Ribaudo <[email protected]> Co-authored-by: Justin Ridgewell <[email protected]>
20 lines
221 B
JavaScript
20 lines
221 B
JavaScript
class Base {
|
|
constructor(obj) {
|
|
return obj;
|
|
}
|
|
}
|
|
|
|
class Derived extends Base {
|
|
get #foo() {
|
|
return 'bar';
|
|
}
|
|
|
|
set #foo(value) {
|
|
this.#foo = value;
|
|
}
|
|
|
|
static get(obj) {
|
|
return obj.#foo();
|
|
}
|
|
}
|