30 lines
461 B
Text
30 lines
461 B
Text
=== tests/cases/conformance/es6/decorators/class/decoratorOnClass7.es6.ts ===
|
|
declare function dec<T>(target: T): T;
|
|
>dec : <T>(target: T) => T
|
|
>T : T
|
|
>target : T
|
|
>T : T
|
|
>T : T
|
|
|
|
@dec
|
|
>dec : <T>(target: T) => T
|
|
|
|
export default class C {
|
|
>C : C
|
|
|
|
static x() { return C.y; }
|
|
>x : () => number
|
|
>C.y : number
|
|
>C : typeof C
|
|
>y : number
|
|
|
|
static y = 1;
|
|
>y : number
|
|
>1 : number
|
|
}
|
|
|
|
let c = new C();
|
|
>c : C
|
|
>new C() : C
|
|
>C : typeof C
|
|
|