TypeScript/tests/baselines/reference/assignToObjectTypeWithPrototypeProperty.js
2014-07-12 17:30:19 -07:00

14 lines
324 B
TypeScript

//// [assignToObjectTypeWithPrototypeProperty.ts]
class XEvent {}
var p: XEvent = XEvent.prototype;
var x: {prototype: XEvent} = XEvent;
//// [assignToObjectTypeWithPrototypeProperty.js]
var XEvent = (function () {
function XEvent() {
}
return XEvent;
})();
var p = XEvent.prototype;
var x = XEvent;