mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
17 lines
330 B
TypeScript
17 lines
330 B
TypeScript
// @target: esnext, es2022, es2015
|
|
// @useDefineForClassFields: true
|
|
// @noTypesAndSymbols: true
|
|
// https://github.com/microsoft/TypeScript/issues/44113
|
|
class C1 {
|
|
static #qux = 42;
|
|
["bar"] () {}
|
|
}
|
|
class C2 {
|
|
static #qux = 42;
|
|
static ["bar"] () {}
|
|
}
|
|
class C3 {
|
|
static #qux = 42;
|
|
static ["bar"] = "test";
|
|
}
|