TypeScript/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js
2015-06-16 12:18:31 -07:00

31 lines
790 B
TypeScript

//// [classExtendsClauseClassNotReferringConstructor.ts]
class A { a: number; }
module Foo {
var A = 1;
class B extends A { b: string; }
}
//// [classExtendsClauseClassNotReferringConstructor.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 A = (function () {
function A() {
}
return A;
})();
var Foo;
(function (Foo) {
var A = 1;
var B = (function (_super) {
__extends(B, _super);
function B() {
_super.apply(this, arguments);
}
return B;
})(A);
})(Foo || (Foo = {}));