2014-08-16 06:14:33 +02:00
|
|
|
//// [tests/cases/compiler/moduleSymbolMerging.ts] ////
|
|
|
|
|
|
|
|
//// [A.ts]
|
|
|
|
|
|
|
|
module A { export interface I {} }
|
|
|
|
|
|
|
|
//// [B.ts]
|
|
|
|
///<reference path="A.ts" />
|
|
|
|
module A { ; }
|
|
|
|
module B {
|
|
|
|
export function f(): A.I { return null; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// [A.js]
|
|
|
|
//// [B.js]
|
2014-08-21 02:07:24 +02:00
|
|
|
///<reference path="A.ts" />
|
2014-08-16 06:14:33 +02:00
|
|
|
var A;
|
|
|
|
(function (A) {
|
|
|
|
;
|
|
|
|
})(A || (A = {}));
|
|
|
|
var B;
|
|
|
|
(function (B) {
|
|
|
|
function f() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
B.f = f;
|
|
|
|
})(B || (B = {}));
|
|
|
|
|
|
|
|
|
|
|
|
//// [A.d.ts]
|
|
|
|
declare module A {
|
|
|
|
interface I {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//// [B.d.ts]
|
2014-09-05 01:21:56 +02:00
|
|
|
/// <reference path="A.d.ts" />
|
2014-08-16 06:14:33 +02:00
|
|
|
declare module A {
|
|
|
|
}
|
|
|
|
declare module B {
|
|
|
|
function f(): A.I;
|
|
|
|
}
|