mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
12 lines
217 B
JavaScript
12 lines
217 B
JavaScript
|
"use strict";
|
||
|
let getFoo;
|
||
|
let getFoo2
|
||
|
class Foo {
|
||
|
static #foo = 42;
|
||
|
static #_ = getFoo2 = this.#foo
|
||
|
static {
|
||
|
getFoo = () => this.#foo;
|
||
|
}
|
||
|
}
|
||
|
expect(getFoo()).toBe(42);
|
||
|
expect(getFoo2()).toBe(42);
|