mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
26 lines
418 B
TypeScript
26 lines
418 B
TypeScript
// @target: es5, esnext
|
|
// @useDefineForClassFields: true
|
|
var x: "p" = "p"
|
|
class A {
|
|
a = this.y
|
|
b
|
|
public c;
|
|
["computed"] = 13
|
|
;[x] = 14
|
|
m() { }
|
|
constructor(public readonly y: number) { }
|
|
z = this.y
|
|
declare notEmitted;
|
|
}
|
|
class B {
|
|
public a;
|
|
}
|
|
class C extends B {
|
|
declare public a;
|
|
z = this.ka
|
|
constructor(public ka: number) {
|
|
super()
|
|
}
|
|
ki = this.ka
|
|
}
|