|
| 1 | +//// [tests/cases/compiler/interfaceMergeWithNonGenericTypeArguments.ts] //// |
| 2 | + |
| 3 | +//// [interfaceMergeWithNonGenericTypeArguments.ts] |
| 4 | +export class SomeBaseClass { } |
| 5 | +export interface SomeInterface { } |
| 6 | +export interface MergedClass extends SomeInterface { } |
| 7 | +export class MergedClass extends SomeBaseClass<any> { |
| 8 | + public constructor() { |
| 9 | + super(); |
| 10 | + } |
| 11 | +} |
| 12 | + |
| 13 | +//// [interfaceMergeWithNonGenericTypeArguments.js] |
| 14 | +"use strict"; |
| 15 | +var __extends = (this && this.__extends) || (function () { |
| 16 | + var extendStatics = function (d, b) { |
| 17 | + extendStatics = Object.setPrototypeOf || |
| 18 | + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || |
| 19 | + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; |
| 20 | + return extendStatics(d, b); |
| 21 | + }; |
| 22 | + return function (d, b) { |
| 23 | + if (typeof b !== "function" && b !== null) |
| 24 | + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); |
| 25 | + extendStatics(d, b); |
| 26 | + function __() { this.constructor = d; } |
| 27 | + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); |
| 28 | + }; |
| 29 | +})(); |
| 30 | +Object.defineProperty(exports, "__esModule", { value: true }); |
| 31 | +exports.MergedClass = exports.SomeBaseClass = void 0; |
| 32 | +var SomeBaseClass = /** @class */ (function () { |
| 33 | + function SomeBaseClass() { |
| 34 | + } |
| 35 | + return SomeBaseClass; |
| 36 | +}()); |
| 37 | +exports.SomeBaseClass = SomeBaseClass; |
| 38 | +var MergedClass = /** @class */ (function (_super) { |
| 39 | + __extends(MergedClass, _super); |
| 40 | + function MergedClass() { |
| 41 | + return _super.call(this) || this; |
| 42 | + } |
| 43 | + return MergedClass; |
| 44 | +}(SomeBaseClass)); |
| 45 | +exports.MergedClass = MergedClass; |
0 commit comments