TypeScript/tests/cases/compiler/privacyCheckOnTypeParameterReferenceInConstructorParameter.ts

12 lines
215 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//@module: amd
//@declaration: true
2014-07-13 01:04:16 +02:00
export class A<T1>{
constructor(callback: (self: A<T1>) => void) {
var child = new B(this);
}
}
export class B<T2> {
constructor(parent: T2) { }
}