1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
=== tests/cases/compiler/genericClassesInModule2.ts ===
export class A<T1>{
>A : A<T1>
constructor( public callback: (self: A<T1>) => void) {
>callback : (self: A<T1>) => void
>self : A<T1>
var child = new B(this);
>child : B<this>
>new B(this) : B<this>
>B : typeof B
>this : this
}
AAA( callback: (self: A<T1>) => void) {
>AAA : (callback: (self: A<T1>) => void) => void
>callback : (self: A<T1>) => void
>self : A<T1>
var child = new B(this);
>child : B<this>
>new B(this) : B<this>
>B : typeof B
>this : this
}
}
export interface C<T1>{
child: B<T1>;
>child : B<T1>
(self: C<T1>): void;
>self : C<T1>
new(callback: (self: C<T1>) => void)
>callback : (self: C<T1>) => void
>self : C<T1>
}
export class B<T2> {
>B : B<T2>
constructor(public parent: T2) { }
>parent : T2
}
|