TypeScript/tests/cases/compiler/super_inside-object-literal-getters-and-setters.ts
2014-07-12 17:30:19 -07:00

26 lines
544 B
TypeScript

module ObjectLiteral {
var ThisInObjectLiteral = {
_foo: '1',
get foo(): string {
return super._foo;
},
set foo(value: string) {
super._foo = value;
},
test: function () {
return super._foo;
}
}
}
class F { public test(): string { return ""; } }
class SuperObjectTest extends F {
public testing() {
var test = {
get F() {
return super.test();
}
};
}
}