TypeScript/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.types

18 lines
385 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/assignToObjectTypeWithPrototypeProperty.ts ===
class XEvent {}
>XEvent : XEvent
2014-08-15 23:33:16 +02:00
var p: XEvent = XEvent.prototype;
>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;
>x : { prototype: XEvent; }
>prototype : XEvent
>XEvent : XEvent
>XEvent : typeof XEvent
2014-08-15 23:33:16 +02:00