TypeScript/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName2.ts
2014-07-12 17:30:19 -07:00

16 lines
255 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) { }
}