TypeScript/tests/cases/compiler/prespecializedGenericMembers1.ts
2014-07-12 17:30:19 -07:00

21 lines
337 B
TypeScript

//@module: commonjs
export interface IKitty {
}
export class Cat<CatType extends IKitty> {
constructor() {
}
}
export class CatBag {
constructor(cats: { barry: Cat<IKitty>; }) {
}
}
var cat = new Cat<IKitty>();
var catThing = {
barry: cat
};
var catBag = new CatBag(catThing);