swc/crates/swc_ecma_parser/tests/tsc/accessorWithES5.ts

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) { }
}