mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
20 lines
168 B
TypeScript
20 lines
168 B
TypeScript
|
// @target: ES5
|
||
|
|
||
|
class C {
|
||
|
get x() {
|
||
|
return 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class D {
|
||
|
set x(v) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var x = {
|
||
|
get a() { return 1 }
|
||
|
}
|
||
|
|
||
|
var y = {
|
||
|
set b(v) { }
|
||
|
}
|