2014-07-13 01:04:16 +02:00
|
|
|
//// [declFileInternalAliases.ts]
|
|
|
|
module m {
|
|
|
|
export class c {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module m1 {
|
|
|
|
import x = m.c;
|
|
|
|
export var d = new x(); // emit the type as m.c
|
|
|
|
}
|
|
|
|
module m2 {
|
|
|
|
export import x = m.c;
|
|
|
|
export var d = new x(); // emit the type as x
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [declFileInternalAliases.js]
|
|
|
|
var m;
|
|
|
|
(function (m) {
|
|
|
|
var c = (function () {
|
|
|
|
function c() {
|
|
|
|
}
|
|
|
|
return c;
|
|
|
|
})();
|
|
|
|
m.c = c;
|
|
|
|
})(m || (m = {}));
|
|
|
|
var m1;
|
|
|
|
(function (m1) {
|
|
|
|
var x = m.c;
|
2014-08-15 22:18:54 +02:00
|
|
|
m1.d = new x(); // emit the type as m.c
|
2014-07-13 01:04:16 +02:00
|
|
|
})(m1 || (m1 = {}));
|
|
|
|
var m2;
|
|
|
|
(function (m2) {
|
|
|
|
m2.x = m.c;
|
2014-08-15 22:18:54 +02:00
|
|
|
m2.d = new m2.x(); // emit the type as x
|
2014-07-13 01:04:16 +02:00
|
|
|
})(m2 || (m2 = {}));
|
2014-08-06 22:16:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
//// [declFileInternalAliases.d.ts]
|
|
|
|
declare module m {
|
|
|
|
class c {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
declare module m1 {
|
|
|
|
import x = m.c;
|
|
|
|
var d: x;
|
|
|
|
}
|
|
|
|
declare module m2 {
|
|
|
|
export import x = m.c;
|
|
|
|
var d: x;
|
|
|
|
}
|