TypeScript/tests/baselines/reference/dottedModuleName2.types
2014-08-15 14:37:48 -07:00

77 lines
874 B
Plaintext

=== tests/cases/compiler/dottedModuleName2.ts ===
module A.B {
>A : typeof A
>B : typeof B
export var x = 1;
>x : number
}
module AA { export module B {
>AA : typeof AA
>B : typeof B
export var x = 1;
>x : number
} }
var tmpOK = AA.B.x;
>tmpOK : number
>AA.B.x : number
>AA.B : typeof B
>AA : typeof AA
>B : typeof B
>x : number
var tmpError = A.B.x;
>tmpError : number
>A.B.x : number
>A.B : typeof B
>A : typeof A
>B : typeof B
>x : number
module A.B.C
>A : typeof A
>B : typeof B
>C : typeof C
{
export var x = 1;
>x : number
}
module M
>M : M
{
import X1 = A;
>X1 : typeof A
>A : typeof A
import X2 = A.B;
>X2 : typeof B
>A : typeof B
>B : typeof B
import X3 = A.B.C;
>X3 : typeof C
>A : typeof C
>B : typeof C
>C : typeof C
}