TypeScript/tests/baselines/reference/classExtendsNull.js
2015-12-08 17:51:10 -08:00

36 lines
836 B
TypeScript

//// [classExtendsNull.ts]
class C extends null {
constructor() {
super();
return Object.create(null);
}
}
class D extends null {
constructor() {
return Object.create(null);
}
}
//// [classExtendsNull.js]
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var C = (function (_super) {
__extends(C, _super);
function C() {
_super.call(this);
return Object.create(null);
}
return C;
}(null));
var D = (function (_super) {
__extends(D, _super);
function D() {
return Object.create(null);
}
return D;
}(null));