2014-07-13 01:04:16 +02:00
|
|
|
//// [internalAliasClassInsideLocalModuleWithoutExport.ts]
|
|
|
|
export module x {
|
|
|
|
export class c {
|
|
|
|
foo(a: number) {
|
|
|
|
return a;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export module m2 {
|
|
|
|
export module m3 {
|
|
|
|
import c = x.c;
|
|
|
|
export var cProp = new c();
|
|
|
|
var cReturnVal = cProp.foo(10);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [internalAliasClassInsideLocalModuleWithoutExport.js]
|
|
|
|
(function (x) {
|
|
|
|
var c = (function () {
|
|
|
|
function c() {
|
|
|
|
}
|
|
|
|
c.prototype.foo = function (a) {
|
|
|
|
return a;
|
|
|
|
};
|
|
|
|
return c;
|
|
|
|
})();
|
|
|
|
x.c = c;
|
|
|
|
})(exports.x || (exports.x = {}));
|
|
|
|
var x = exports.x;
|
|
|
|
(function (m2) {
|
|
|
|
(function (m3) {
|
|
|
|
var c = x.c;
|
|
|
|
m3.cProp = new c();
|
|
|
|
var cReturnVal = m3.cProp.foo(10);
|
|
|
|
})(m2.m3 || (m2.m3 = {}));
|
|
|
|
var m3 = m2.m3;
|
|
|
|
})(exports.m2 || (exports.m2 = {}));
|
|
|
|
var m2 = exports.m2;
|
2014-08-06 22:16:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
//// [internalAliasClassInsideLocalModuleWithoutExport.d.ts]
|
|
|
|
export declare module x {
|
|
|
|
class c {
|
|
|
|
foo(a: number): number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export declare module m2 {
|
|
|
|
module m3 {
|
|
|
|
import c = x.c;
|
|
|
|
var cProp: c;
|
|
|
|
}
|
|
|
|
}
|