mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +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);
|