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

16 lines
240 B
TypeScript

class C {
static get x() { return 1; }
static get x() { return 1; } // error
}
class D {
static set x(v) { }
static set x(v) { } // error
}
class E {
static get x() {
return 1;
}
static set x(v) { }
}