33 lines
667 B
Text
33 lines
667 B
Text
=== tests/cases/compiler/genericPrototypeProperty3.ts ===
|
|
class BaseEvent {
|
|
>BaseEvent : BaseEvent
|
|
|
|
target: {};
|
|
>target : {}
|
|
}
|
|
|
|
class MyEvent<T> extends BaseEvent { // T is instantiated to any in the prototype, which is assignable to {}
|
|
>MyEvent : MyEvent<T>
|
|
>T : T
|
|
>BaseEvent : BaseEvent
|
|
|
|
target: T;
|
|
>target : T
|
|
>T : T
|
|
}
|
|
class BaseEventWrapper {
|
|
>BaseEventWrapper : BaseEventWrapper
|
|
|
|
t: BaseEvent;
|
|
>t : BaseEvent
|
|
>BaseEvent : BaseEvent
|
|
}
|
|
|
|
class MyEventWrapper extends BaseEventWrapper {
|
|
>MyEventWrapper : MyEventWrapper
|
|
>BaseEventWrapper : BaseEventWrapper
|
|
|
|
t: MyEvent<any>;
|
|
>t : MyEvent<any>
|
|
>MyEvent : MyEvent<T>
|
|
}
|