| 1 |
class Foo { |
| 2 |
static #bar = 21; |
| 3 |
static { |
| 4 |
this.foo = this.#bar; |
| 5 |
this.qux1 = this.qux; |
| 6 |
} |
| 7 |
static qux = 21; |
| 8 |
static { |
| 9 |
this.qux2 = this.qux; |
| 10 |
} |
| 11 |
} |
| 12 |
expect(Foo.foo).toBe(21); |
| 13 |
expect(Foo.qux1).toBe(undefined); |
| 14 |
expect(Foo.qux2).toBe(21); |