TypeScript/tests/cases/compiler/circularObjectLiteralAccessors.ts
2015-12-10 16:19:02 -08:00

15 lines
229 B
TypeScript

// @target: es5
// Repro from #6000
const a = {
b: {
get foo(): string {
return a.foo;
},
set foo(value: string) {
a.foo = value;
}
},
foo: ''
};