TypeScript/tests/cases/conformance/classes/propertyMemberDeclarations/twoAccessorsWithSameName2.ts

16 lines
255 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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) { }
}