TypeScript/tests/baselines/reference/dottedModuleName2.types

77 lines
909 B
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/dottedModuleName2.ts ===
module A.B {
2014-08-28 21:40:58 +02:00
>A : typeof A
>B : typeof B
2014-08-15 23:33:16 +02:00
export var x = 1;
>x : number
}
module AA { export module B {
2014-08-28 21:40:58 +02:00
>AA : typeof AA
>B : typeof B
2014-08-15 23:33:16 +02:00
export var x = 1;
>x : number
} }
var tmpOK = AA.B.x;
>tmpOK : number
>AA.B.x : number
2014-08-25 19:36:12 +02:00
>AA.B : typeof AA.B
2014-08-15 23:33:16 +02:00
>AA : typeof AA
2014-08-25 19:36:12 +02:00
>B : typeof AA.B
2014-08-15 23:33:16 +02:00
>x : number
var tmpError = A.B.x;
>tmpError : number
>A.B.x : number
2014-08-25 19:36:12 +02:00
>A.B : typeof A.B
2014-08-15 23:33:16 +02:00
>A : typeof A
2014-08-25 19:36:12 +02:00
>B : typeof A.B
2014-08-15 23:33:16 +02:00
>x : number
module A.B.C
2014-08-28 21:40:58 +02:00
>A : typeof A
>B : typeof B
>C : typeof C
2014-08-15 23:33:16 +02:00
{
export var x = 1;
>x : number
}
module M
2014-08-28 21:40:58 +02:00
>M : unknown
2014-08-15 23:33:16 +02:00
{
import X1 = A;
2014-08-28 21:40:58 +02:00
>X1 : typeof X1
2014-08-25 19:36:12 +02:00
>A : typeof X1
2014-08-15 23:33:16 +02:00
import X2 = A.B;
2014-08-28 21:40:58 +02:00
>X2 : typeof X1.B
2014-08-25 19:36:12 +02:00
>A : typeof X1
>B : typeof X1.B
2014-08-15 23:33:16 +02:00
import X3 = A.B.C;
2014-08-28 21:40:58 +02:00
>X3 : typeof X2.C
2014-08-25 19:36:12 +02:00
>A : typeof X1
>B : typeof X1.B
>C : typeof X2.C
2014-08-15 23:33:16 +02:00
}