26 lines
544 B
TypeScript
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();
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|