2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/getterSetterNonAccessor.ts ===
|
|
|
|
function getFunc():any{return 0;}
|
2014-08-28 21:52:44 +02:00
|
|
|
>getFunc : () => any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function setFunc(v){}
|
2014-08-28 21:52:44 +02:00
|
|
|
>setFunc : (v: any) => void
|
2014-08-15 23:33:16 +02:00
|
|
|
>v : any
|
|
|
|
|
|
|
|
Object.defineProperty({}, "0", <PropertyDescriptor>({
|
2014-08-22 03:39:46 +02:00
|
|
|
>Object.defineProperty({}, "0", <PropertyDescriptor>({ get: getFunc, set: setFunc, configurable: true })) : any
|
2014-08-15 23:33:16 +02:00
|
|
|
>Object.defineProperty : (o: any, p: string, attributes: PropertyDescriptor) => any
|
2014-10-29 05:21:47 +01:00
|
|
|
>Object : ObjectConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
>defineProperty : (o: any, p: string, attributes: PropertyDescriptor) => any
|
|
|
|
>{} : {}
|
2014-08-22 03:39:46 +02:00
|
|
|
><PropertyDescriptor>({ get: getFunc, set: setFunc, configurable: true }) : PropertyDescriptor
|
2014-08-15 23:33:16 +02:00
|
|
|
>PropertyDescriptor : PropertyDescriptor
|
2015-01-24 17:04:23 +01:00
|
|
|
>({ get: getFunc, set: setFunc, configurable: true }) : { get: () => any; set: (v: any) => void; configurable: boolean; }
|
|
|
|
>{ get: getFunc, set: setFunc, configurable: true } : { get: () => any; set: (v: any) => void; configurable: boolean; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
get: getFunc,
|
2014-08-28 21:52:44 +02:00
|
|
|
>get : () => any
|
|
|
|
>getFunc : () => any
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
set: setFunc,
|
2014-08-28 21:52:44 +02:00
|
|
|
>set : (v: any) => void
|
|
|
|
>setFunc : (v: any) => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
configurable: true
|
|
|
|
>configurable : boolean
|
|
|
|
|
|
|
|
}));
|
|
|
|
|