mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +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
19 lines
255 B
TypeScript
19 lines
255 B
TypeScript
// @target: es6
|
|
class B {
|
|
x = 10;
|
|
constructor() {
|
|
this.x = 10;
|
|
}
|
|
static log(a: number) { }
|
|
foo() {
|
|
B.log(this.x);
|
|
}
|
|
|
|
get X() {
|
|
return this.x;
|
|
}
|
|
|
|
set bX(y: number) {
|
|
this.x = y;
|
|
}
|
|
} |