TypeScript/tests/baselines/reference/dottedModuleName2.types

80 lines
944 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/dottedModuleName2.ts ===
module A.B {
>A : typeof A
>B : typeof B
2014-08-15 23:33:16 +02:00
export var x = 1;
>x : number
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
}
module AA { export module B {
>AA : typeof AA
>B : typeof B
2014-08-15 23:33:16 +02:00
export var x = 1;
>x : number
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
} }
var tmpOK = AA.B.x;
>tmpOK : number
>AA.B.x : number
>AA.B : typeof AA.B
>AA : typeof AA
>B : typeof AA.B
>x : number
2014-08-15 23:33:16 +02:00
var tmpError = A.B.x;
>tmpError : number
>A.B.x : number
>A.B : typeof A.B
>A : typeof A
>B : typeof A.B
>x : number
2014-08-15 23:33:16 +02:00
module A.B.C
>A : typeof A
>B : typeof B
>C : typeof C
2014-08-15 23:33:16 +02:00
{
export var x = 1;
>x : number
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
}
module M
>M : any
2014-08-15 23:33:16 +02:00
{
import X1 = A;
>X1 : typeof X1
>A : typeof X1
2014-08-15 23:33:16 +02:00
import X2 = A.B;
>X2 : typeof X1.B
>A : typeof X1
>B : typeof X1.B
2014-08-15 23:33:16 +02:00
import X3 = A.B.C;
>X3 : typeof X2.C
>A : typeof X1
>B : typeof X1.B
>C : typeof X2.C
2014-08-15 23:33:16 +02:00
}