TypeScript/tests/baselines/reference/decoratorOnClassMethod13.types

24 lines
901 B
Plaintext
Raw Normal View History

2015-04-07 22:17:57 +02:00
=== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod13.ts ===
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
>dec : () => <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
>T : T
>target : any
>propertyKey : string
>descriptor : TypedPropertyDescriptor<T>
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
>T : T
>TypedPropertyDescriptor : TypedPropertyDescriptor<T>
>T : T
2015-04-07 22:17:57 +02:00
class C {
>C : C
2015-04-07 22:17:57 +02:00
@dec ["1"]() { }
>dec : () => <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
2015-04-13 21:36:11 +02:00
>"1" : string
2015-04-07 22:17:57 +02:00
@dec ["b"]() { }
>dec : () => <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
2015-04-13 21:36:11 +02:00
>"b" : string
2015-04-07 22:17:57 +02:00
}