2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/genericWithIndexerOfTypeParameterType2.ts ===
|
|
|
|
export class Collection<TItem extends CollectionItem> {
|
|
|
|
>Collection : Collection<TItem>
|
|
|
|
>TItem : TItem
|
|
|
|
>CollectionItem : CollectionItem
|
|
|
|
|
|
|
|
_itemsByKey: { [key: string]: TItem; };
|
2014-12-06 01:58:49 +01:00
|
|
|
>_itemsByKey : { [key: string]: TItem; }
|
2014-08-15 23:33:16 +02:00
|
|
|
>key : string
|
|
|
|
>TItem : TItem
|
|
|
|
}
|
|
|
|
|
|
|
|
export class List extends Collection<ListItem>{
|
|
|
|
>List : List
|
2014-08-19 04:56:03 +02:00
|
|
|
>Collection : Collection<TItem>
|
2014-08-15 23:33:16 +02:00
|
|
|
>ListItem : ListItem
|
|
|
|
|
|
|
|
Bar() {}
|
|
|
|
>Bar : () => void
|
|
|
|
}
|
|
|
|
|
|
|
|
export class CollectionItem {}
|
|
|
|
>CollectionItem : CollectionItem
|
|
|
|
|
|
|
|
export class ListItem extends CollectionItem {
|
|
|
|
>ListItem : ListItem
|
|
|
|
>CollectionItem : CollectionItem
|
|
|
|
|
|
|
|
__isNew: boolean;
|
|
|
|
>__isNew : boolean
|
|
|
|
}
|
|
|
|
|