mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
15 lines
332 B
TypeScript
15 lines
332 B
TypeScript
// @target: es2015
|
|
|
|
class X {
|
|
static #f = X.#m();
|
|
constructor() {
|
|
X.#m();
|
|
}
|
|
static #m() {
|
|
const X: any = {}; // shadow the class
|
|
const _a: any = {}; // shadow the first generated var
|
|
X.#m(); // Should check with X as the receiver with _b as the class constructor
|
|
return 1;
|
|
}
|
|
}
|
|
|