mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
56 lines
946 B
TypeScript
56 lines
946 B
TypeScript
//// [tests/cases/compiler/exportDeclarationInInternalModule.ts] ////
|
|
|
|
//// [exportDeclarationInInternalModule.ts]
|
|
class Bbb {
|
|
}
|
|
|
|
class Aaa extends Bbb { }
|
|
|
|
namespace Aaa {
|
|
export class SomeType { }
|
|
}
|
|
|
|
namespace Bbb {
|
|
export class SomeType { }
|
|
|
|
export * from Aaa; // this line causes the nullref
|
|
}
|
|
|
|
var a: Bbb.SomeType;
|
|
|
|
|
|
//// [exportDeclarationInInternalModule.js]
|
|
"use strict";
|
|
class Bbb {
|
|
}
|
|
class Aaa extends Bbb {
|
|
}
|
|
(function (Aaa) {
|
|
class SomeType {
|
|
}
|
|
Aaa.SomeType = SomeType;
|
|
})(Aaa || (Aaa = {}));
|
|
(function (Bbb) {
|
|
class SomeType {
|
|
}
|
|
Bbb.SomeType = SomeType;
|
|
})(Bbb || (Bbb = {}));
|
|
var a;
|
|
|
|
|
|
//// [exportDeclarationInInternalModule.d.ts]
|
|
declare class Bbb {
|
|
}
|
|
declare class Aaa extends Bbb {
|
|
}
|
|
declare namespace Aaa {
|
|
class SomeType {
|
|
}
|
|
}
|
|
declare namespace Bbb {
|
|
export class SomeType {
|
|
}
|
|
export * from Aaa;
|
|
}
|
|
declare var a: Bbb.SomeType;
|