31 lines
710 B
TypeScript
31 lines
710 B
TypeScript
//// [tests/cases/compiler/outModuleConcatCommonjs.ts] ////
|
|
|
|
//// [a.ts]
|
|
|
|
// This should be an error
|
|
|
|
export class A { }
|
|
|
|
//// [b.ts]
|
|
import {A} from "./ref/a";
|
|
export class B extends A { }
|
|
|
|
//// [all.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 __());
|
|
};
|
|
// This should be an error
|
|
//# sourceMappingURL=all.js.map
|
|
|
|
//// [all.d.ts]
|
|
declare module "ref/a" {
|
|
export class A {
|
|
}
|
|
}
|
|
declare module "b" {
|
|
import { A } from "ref/a";
|
|
export class B extends A {
|
|
}
|
|
}
|