40 lines
2.1 KiB
Text
40 lines
2.1 KiB
Text
=== tests/cases/compiler/genericBaseClassLiteralProperty2.ts ===
|
|
class CollectionItem2 { }
|
|
>CollectionItem2 : Symbol(CollectionItem2, Decl(genericBaseClassLiteralProperty2.ts, 0, 0))
|
|
|
|
class BaseCollection2<TItem extends CollectionItem2> {
|
|
>BaseCollection2 : Symbol(BaseCollection2, Decl(genericBaseClassLiteralProperty2.ts, 0, 25))
|
|
>TItem : Symbol(TItem, Decl(genericBaseClassLiteralProperty2.ts, 2, 22))
|
|
>CollectionItem2 : Symbol(CollectionItem2, Decl(genericBaseClassLiteralProperty2.ts, 0, 0))
|
|
|
|
_itemsByKey: { [key: string]: TItem; };
|
|
>_itemsByKey : Symbol(_itemsByKey, Decl(genericBaseClassLiteralProperty2.ts, 2, 54))
|
|
>key : Symbol(key, Decl(genericBaseClassLiteralProperty2.ts, 3, 20))
|
|
>TItem : Symbol(TItem, Decl(genericBaseClassLiteralProperty2.ts, 2, 22))
|
|
|
|
constructor() {
|
|
this._itemsByKey = {};
|
|
>this._itemsByKey : Symbol(_itemsByKey, Decl(genericBaseClassLiteralProperty2.ts, 2, 54))
|
|
>this : Symbol(BaseCollection2, Decl(genericBaseClassLiteralProperty2.ts, 0, 25))
|
|
>_itemsByKey : Symbol(_itemsByKey, Decl(genericBaseClassLiteralProperty2.ts, 2, 54))
|
|
}
|
|
}
|
|
|
|
class DataView2 extends BaseCollection2<CollectionItem2> {
|
|
>DataView2 : Symbol(DataView2, Decl(genericBaseClassLiteralProperty2.ts, 7, 1))
|
|
>BaseCollection2 : Symbol(BaseCollection2, Decl(genericBaseClassLiteralProperty2.ts, 0, 25))
|
|
>CollectionItem2 : Symbol(CollectionItem2, Decl(genericBaseClassLiteralProperty2.ts, 0, 0))
|
|
|
|
fillItems(item: CollectionItem2) {
|
|
>fillItems : Symbol(fillItems, Decl(genericBaseClassLiteralProperty2.ts, 9, 58))
|
|
>item : Symbol(item, Decl(genericBaseClassLiteralProperty2.ts, 10, 14))
|
|
>CollectionItem2 : Symbol(CollectionItem2, Decl(genericBaseClassLiteralProperty2.ts, 0, 0))
|
|
|
|
this._itemsByKey['dummy'] = item;
|
|
>this._itemsByKey : Symbol(BaseCollection2._itemsByKey, Decl(genericBaseClassLiteralProperty2.ts, 2, 54))
|
|
>this : Symbol(DataView2, Decl(genericBaseClassLiteralProperty2.ts, 7, 1))
|
|
>_itemsByKey : Symbol(BaseCollection2._itemsByKey, Decl(genericBaseClassLiteralProperty2.ts, 2, 54))
|
|
>item : Symbol(item, Decl(genericBaseClassLiteralProperty2.ts, 10, 14))
|
|
}
|
|
}
|
|
|