21 lines
760 B
Plaintext
21 lines
760 B
Plaintext
=== tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.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
|
|
|
|
class C {
|
|
>C : C
|
|
|
|
@dec get accessor() { return 1; }
|
|
>dec : <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>
|
|
>accessor : number
|
|
>1 : number
|
|
}
|