mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
42 lines
578 B
TypeScript
42 lines
578 B
TypeScript
// @target: esnext
|
|
// @useDefineForClassFields: false
|
|
|
|
// @filename: file1.ts
|
|
// https://github.com/microsoft/TypeScript/issues/51528
|
|
class C1 {
|
|
static accessor x = 0;
|
|
}
|
|
|
|
// @filename: file2.ts
|
|
class C2 {
|
|
static accessor #x = 0;
|
|
}
|
|
|
|
// @filename: file3.ts
|
|
class C3 {
|
|
static accessor #x = 0;
|
|
accessor #y = 0;
|
|
}
|
|
|
|
// @filename: file3.ts
|
|
class C3 {
|
|
accessor x = 0;
|
|
}
|
|
|
|
// @filename: file4.ts
|
|
class C4 {
|
|
accessor #x = 0;
|
|
}
|
|
|
|
// @filename: file5.ts
|
|
class C5 {
|
|
x = 0;
|
|
accessor #x = 1;
|
|
}
|
|
|
|
// @filename: file6.ts
|
|
class C6 {
|
|
accessor #x = 0;
|
|
x = 1;
|
|
}
|