mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
16 lines
216 B
JavaScript
16 lines
216 B
JavaScript
class Test {
|
|
|
|
static #x = 1
|
|
|
|
static method() {
|
|
const Test = 2;
|
|
const func = () => {
|
|
const Test = 3;
|
|
return this.#x + Test;
|
|
}
|
|
return func() + Test;
|
|
}
|
|
}
|
|
|
|
expect(Test.method()).toBe(6)
|