mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
21 lines
246 B
JavaScript
21 lines
246 B
JavaScript
const result = 1
|
|
|> class {
|
|
#baz;
|
|
|
|
constructor () {
|
|
this.#baz = #;
|
|
}
|
|
|
|
#bar () {
|
|
return this.#baz + 2;
|
|
}
|
|
|
|
foo () {
|
|
return this.#bar() + 3;
|
|
}
|
|
}
|
|
|> new #
|
|
|> #.foo();
|
|
|
|
expect(result).toBe(1 + 2 + 3);
|