42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
//// [classExtensionNameOutput.ts]
|
|
class A {}
|
|
if (true) {
|
|
class B extends A {}
|
|
|
|
const foo = function () {
|
|
new B();
|
|
}
|
|
}
|
|
|
|
//// [classExtensionNameOutput.js]
|
|
var __extends = (this && this.__extends) || (function () {
|
|
var extendStatics = function (d, b) {
|
|
extendStatics = Object.setPrototypeOf ||
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
return extendStatics(d, b);
|
|
};
|
|
return function (d, b) {
|
|
extendStatics(d, b);
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
var A = /** @class */ (function () {
|
|
function A() {
|
|
}
|
|
return A;
|
|
}());
|
|
if (true) {
|
|
var B_1 = /** @class */ (function (_super) {
|
|
__extends(B, _super);
|
|
function B() {
|
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
}
|
|
return B;
|
|
}(A));
|
|
var foo = function () {
|
|
new B_1();
|
|
};
|
|
}
|