mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
16 lines
214 B
JavaScript
16 lines
214 B
JavaScript
class Foo {
|
|
static #bar = "foo";
|
|
|
|
static test() {
|
|
return Foo.#bar;
|
|
}
|
|
|
|
test() {
|
|
return Foo.#bar;
|
|
}
|
|
}
|
|
|
|
expect("bar" in Foo).toBe(false)
|
|
expect(Foo.test()).toBe("foo")
|
|
expect(Foo.test()).toBe("foo")
|