39 lines
532 B
Text
39 lines
532 B
Text
=== tests/cases/compiler/importAliasWithDottedName.ts ===
|
|
module M {
|
|
>M : typeof M
|
|
|
|
export var x = 1;
|
|
>x : number
|
|
>1 : number
|
|
|
|
export module N {
|
|
>N : typeof N
|
|
|
|
export var y = 2;
|
|
>y : number
|
|
>2 : number
|
|
}
|
|
}
|
|
|
|
module A {
|
|
>A : typeof A
|
|
|
|
import N = M.N;
|
|
>N : typeof N
|
|
>M : typeof M
|
|
>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
|
|
}
|