mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
18 lines
265 B
JavaScript
18 lines
265 B
JavaScript
class Test {
|
|
|
|
static #x = 1
|
|
|
|
method(other) {
|
|
const Test = 2;
|
|
const func = () => {
|
|
const Test = 3;
|
|
return #x in other && Test;
|
|
}
|
|
return func() + Test;
|
|
}
|
|
}
|
|
|
|
const t = new Test();
|
|
const t2 = new Test();
|
|
expect(t.method(Test)).toBe(5)
|