TypeScript/tests/baselines/reference/privacyCheckOnTypeParameterReferenceInConstructorParameter.types
2015-04-15 16:44:20 -07:00

29 lines
491 B
Plaintext

=== tests/cases/compiler/privacyCheckOnTypeParameterReferenceInConstructorParameter.ts ===
export class A<T1>{
>A : A<T1>
>T1 : T1
constructor(callback: (self: A<T1>) => void) {
>callback : (self: A<T1>) => void
>self : A<T1>
>A : A<T1>
>T1 : T1
var child = new B(this);
>child : B<A<T1>>
>new B(this) : B<A<T1>>
>B : typeof B
>this : A<T1>
}
}
export class B<T2> {
>B : B<T2>
>T2 : T2
constructor(parent: T2) { }
>parent : T2
>T2 : T2
}