TypeScript/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.types
2015-04-15 16:44:20 -07:00

18 lines
385 B
Plaintext

=== tests/cases/compiler/assignToObjectTypeWithPrototypeProperty.ts ===
class XEvent {}
>XEvent : XEvent
var p: XEvent = XEvent.prototype;
>p : XEvent
>XEvent : XEvent
>XEvent.prototype : XEvent
>XEvent : typeof XEvent
>prototype : XEvent
var x: {prototype: XEvent} = XEvent;
>x : { prototype: XEvent; }
>prototype : XEvent
>XEvent : XEvent
>XEvent : typeof XEvent