2015-07-16 22:41:39 +02:00
|
|
|
//// [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;
|
2015-12-09 02:51:05 +01:00
|
|
|
}(null));
|
2015-07-16 22:41:39 +02:00
|
|
|
var D = (function (_super) {
|
|
|
|
__extends(D, _super);
|
|
|
|
function D() {
|
|
|
|
return Object.create(null);
|
|
|
|
}
|
|
|
|
return D;
|
2015-12-09 02:51:05 +01:00
|
|
|
}(null));
|