2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/importAliasWithDottedName.ts ===
|
|
|
|
module M {
|
|
|
|
>M : typeof M
|
|
|
|
|
|
|
|
export var x = 1;
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
export module N {
|
|
|
|
>N : typeof N
|
|
|
|
|
|
|
|
export var y = 2;
|
|
|
|
>y : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module A {
|
|
|
|
>A : typeof A
|
|
|
|
|
|
|
|
import N = M.N;
|
|
|
|
>N : typeof N
|
2014-08-19 04:56:03 +02:00
|
|
|
>M : typeof M
|
2014-08-15 23:33:16 +02:00
|
|
|
>N : typeof N
|
|
|
|
|
|
|
|
var r = N.y;
|
|
|
|
>r : number
|
|
|
|
>N.y : number
|
|
|
|
>N : typeof N
|
|
|
|
>y : number
|
|
|
|
|
|
|
|
var r2 = M.N.y;
|
|
|
|
>r2 : number
|
|
|
|
>M.N.y : number
|
|
|
|
>M.N : typeof N
|
|
|
|
>M : typeof M
|
|
|
|
>N : typeof N
|
|
|
|
>y : number
|
|
|
|
}
|