18 lines
385 B
Plaintext
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
|
|
|