38 lines
506 B
Plaintext
38 lines
506 B
Plaintext
=== 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
|
|
>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
|
|
}
|