2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/genericBaseClassLiteralProperty2.ts ===
|
|
|
|
class CollectionItem2 { }
|
|
|
|
>CollectionItem2 : CollectionItem2
|
|
|
|
|
|
|
|
class BaseCollection2<TItem extends CollectionItem2> {
|
|
|
|
>BaseCollection2 : BaseCollection2<TItem>
|
|
|
|
>TItem : TItem
|
|
|
|
>CollectionItem2 : CollectionItem2
|
|
|
|
|
|
|
|
_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
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this._itemsByKey = {};
|
2014-10-13 15:56:58 +02:00
|
|
|
>this._itemsByKey = {} : { [x: string]: undefined; }
|
2014-12-06 01:58:49 +01:00
|
|
|
>this._itemsByKey : { [key: string]: TItem; }
|
2014-08-15 23:33:16 +02:00
|
|
|
>this : BaseCollection2<TItem>
|
2014-12-06 01:58:49 +01:00
|
|
|
>_itemsByKey : { [key: string]: TItem; }
|
2014-10-13 15:56:58 +02:00
|
|
|
>{} : { [x: string]: undefined; }
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DataView2 extends BaseCollection2<CollectionItem2> {
|
|
|
|
>DataView2 : DataView2
|
2014-08-19 04:56:03 +02:00
|
|
|
>BaseCollection2 : BaseCollection2<TItem>
|
2014-08-15 23:33:16 +02:00
|
|
|
>CollectionItem2 : CollectionItem2
|
|
|
|
|
|
|
|
fillItems(item: CollectionItem2) {
|
|
|
|
>fillItems : (item: CollectionItem2) => void
|
|
|
|
>item : CollectionItem2
|
|
|
|
>CollectionItem2 : CollectionItem2
|
|
|
|
|
|
|
|
this._itemsByKey['dummy'] = item;
|
|
|
|
>this._itemsByKey['dummy'] = item : CollectionItem2
|
|
|
|
>this._itemsByKey['dummy'] : CollectionItem2
|
2014-12-06 01:58:49 +01:00
|
|
|
>this._itemsByKey : { [key: string]: CollectionItem2; }
|
2014-08-15 23:33:16 +02:00
|
|
|
>this : DataView2
|
2014-12-06 01:58:49 +01:00
|
|
|
>_itemsByKey : { [key: string]: CollectionItem2; }
|
2014-08-15 23:33:16 +02:00
|
|
|
>item : CollectionItem2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|