mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
13 lines
217 B
JavaScript
13 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);
|