2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/assignToObjectTypeWithPrototypeProperty.ts ===
|
|
|
|
class XEvent {}
|
2015-04-16 01:44:20 +02:00
|
|
|
>XEvent : XEvent
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var p: XEvent = XEvent.prototype;
|
2015-04-16 01:44:20 +02:00
|
|
|
>p : XEvent
|
|
|
|
>XEvent : XEvent
|
|
|
|
>XEvent.prototype : XEvent
|
|
|
|
>XEvent : typeof XEvent
|
|
|
|
>prototype : XEvent
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var x: {prototype: XEvent} = XEvent;
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : { prototype: XEvent; }
|
|
|
|
>prototype : XEvent
|
|
|
|
>XEvent : XEvent
|
|
|
|
>XEvent : typeof XEvent
|
2014-08-15 23:33:16 +02:00
|
|
|
|