2014-07-13 01:04:16 +02:00
|
|
|
//// [mixingFunctionAndAmbientModule1.ts]
|
|
|
|
module A {
|
|
|
|
declare module My {
|
|
|
|
export var x: number;
|
|
|
|
}
|
|
|
|
function My(s: string) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
module B {
|
|
|
|
declare module My {
|
|
|
|
export var x: number;
|
|
|
|
}
|
|
|
|
function My(s: boolean);
|
|
|
|
function My(s: any) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
module C {
|
|
|
|
declare module My {
|
|
|
|
export var x: number;
|
|
|
|
}
|
|
|
|
declare function My(s: boolean);
|
|
|
|
}
|
|
|
|
|
|
|
|
module D {
|
|
|
|
declare module My {
|
|
|
|
export var x: number;
|
|
|
|
}
|
|
|
|
declare function My(s: boolean);
|
|
|
|
declare function My(s: any);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module E {
|
|
|
|
declare module My {
|
|
|
|
export var x: number;
|
|
|
|
}
|
|
|
|
declare function My(s: boolean);
|
|
|
|
declare module My {
|
|
|
|
export var y: number;
|
|
|
|
}
|
|
|
|
declare function My(s: any);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [mixingFunctionAndAmbientModule1.js]
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
2015-02-07 03:45:09 +01:00
|
|
|
function My(s) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
})(A || (A = {}));
|
|
|
|
var B;
|
|
|
|
(function (B) {
|
2015-02-07 03:45:09 +01:00
|
|
|
function My(s) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
})(B || (B = {}));
|
|
|
|
var C;
|
|
|
|
(function (C) {
|
|
|
|
})(C || (C = {}));
|
|
|
|
var D;
|
|
|
|
(function (D) {
|
|
|
|
})(D || (D = {}));
|
|
|
|
var E;
|
|
|
|
(function (E) {
|
|
|
|
})(E || (E = {}));
|