2014-07-13 01:04:16 +02:00
|
|
|
//// [internalAliasClass.ts]
|
|
|
|
module a {
|
|
|
|
export class c {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module c {
|
|
|
|
import b = a.c;
|
|
|
|
export var x: b = new b();
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [internalAliasClass.js]
|
|
|
|
var a;
|
|
|
|
(function (a) {
|
|
|
|
var c = (function () {
|
|
|
|
function c() {
|
|
|
|
}
|
|
|
|
return c;
|
|
|
|
})();
|
|
|
|
a.c = c;
|
|
|
|
})(a || (a = {}));
|
|
|
|
var c;
|
|
|
|
(function (c) {
|
|
|
|
var b = a.c;
|
|
|
|
c.x = new b();
|
|
|
|
})(c || (c = {}));
|
|
|
|
|
|
|
|
|
|
|
|
//// [internalAliasClass.d.ts]
|
2014-07-11 23:44:31 +02:00
|
|
|
declare module a {
|
|
|
|
class c {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
declare module c {
|
2014-07-15 21:53:37 +02:00
|
|
|
var x: b;
|
2014-07-11 23:44:31 +02:00
|
|
|
}
|
2014-07-18 02:40:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
//// [DtsFileErrors]
|
|
|
|
|
|
|
|
|
|
|
|
==== tests/cases/compiler/internalAliasClass.d.ts (1 errors) ====
|
|
|
|
declare module a {
|
|
|
|
class c {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
declare module c {
|
|
|
|
var x: b;
|
|
|
|
~
|
|
|
|
!!! Cannot find name 'b'.
|
|
|
|
}
|
|
|
|
|