mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +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";
|
|
}
|