79 lines
2.7 KiB
Text
79 lines
2.7 KiB
Text
=== tests/cases/compiler/dottedModuleName2.ts ===
|
|
module A.B {
|
|
>A : typeof A, Symbol(A,Decl(dottedModuleName2.ts,0,0),Decl(dottedModuleName2.ts,18,21))
|
|
>B : typeof B, Symbol(B,Decl(dottedModuleName2.ts,0,9),Decl(dottedModuleName2.ts,21,9))
|
|
|
|
export var x = 1;
|
|
>x : number, Symbol(x,Decl(dottedModuleName2.ts,2,12))
|
|
>1 : number
|
|
|
|
}
|
|
|
|
|
|
|
|
module AA { export module B {
|
|
>AA : typeof AA, Symbol(AA,Decl(dottedModuleName2.ts,4,1))
|
|
>B : typeof B, Symbol(B,Decl(dottedModuleName2.ts,8,11))
|
|
|
|
export var x = 1;
|
|
>x : number, Symbol(x,Decl(dottedModuleName2.ts,10,12))
|
|
>1 : number
|
|
|
|
} }
|
|
|
|
|
|
|
|
var tmpOK = AA.B.x;
|
|
>tmpOK : number, Symbol(tmpOK,Decl(dottedModuleName2.ts,16,3))
|
|
>AA.B.x : number, Symbol(AA.B.x,Decl(dottedModuleName2.ts,10,12))
|
|
>AA.B : typeof AA.B, Symbol(AA.B,Decl(dottedModuleName2.ts,8,11))
|
|
>AA : typeof AA, Symbol(AA,Decl(dottedModuleName2.ts,4,1))
|
|
>B : typeof AA.B, Symbol(AA.B,Decl(dottedModuleName2.ts,8,11))
|
|
>x : number, Symbol(AA.B.x,Decl(dottedModuleName2.ts,10,12))
|
|
|
|
var tmpError = A.B.x;
|
|
>tmpError : number, Symbol(tmpError,Decl(dottedModuleName2.ts,18,3))
|
|
>A.B.x : number, Symbol(A.B.x,Decl(dottedModuleName2.ts,2,12))
|
|
>A.B : typeof A.B, Symbol(A.B,Decl(dottedModuleName2.ts,0,9),Decl(dottedModuleName2.ts,21,9))
|
|
>A : typeof A, Symbol(A,Decl(dottedModuleName2.ts,0,0),Decl(dottedModuleName2.ts,18,21))
|
|
>B : typeof A.B, Symbol(A.B,Decl(dottedModuleName2.ts,0,9),Decl(dottedModuleName2.ts,21,9))
|
|
>x : number, Symbol(A.B.x,Decl(dottedModuleName2.ts,2,12))
|
|
|
|
|
|
module A.B.C
|
|
>A : typeof A, Symbol(A,Decl(dottedModuleName2.ts,0,0),Decl(dottedModuleName2.ts,18,21))
|
|
>B : typeof B, Symbol(B,Decl(dottedModuleName2.ts,0,9),Decl(dottedModuleName2.ts,21,9))
|
|
>C : typeof C, Symbol(C,Decl(dottedModuleName2.ts,21,11))
|
|
|
|
{
|
|
|
|
export var x = 1;
|
|
>x : number, Symbol(x,Decl(dottedModuleName2.ts,25,14))
|
|
>1 : number
|
|
|
|
}
|
|
|
|
|
|
|
|
module M
|
|
>M : any, Symbol(M,Decl(dottedModuleName2.ts,27,1))
|
|
|
|
{
|
|
|
|
import X1 = A;
|
|
>X1 : typeof X1, Symbol(X1,Decl(dottedModuleName2.ts,33,1))
|
|
>A : typeof X1, Symbol(X1,Decl(dottedModuleName2.ts,0,0),Decl(dottedModuleName2.ts,18,21))
|
|
|
|
import X2 = A.B;
|
|
>X2 : typeof X1.B, Symbol(X2,Decl(dottedModuleName2.ts,35,18))
|
|
>A : typeof X1, Symbol(X1,Decl(dottedModuleName2.ts,0,0),Decl(dottedModuleName2.ts,18,21))
|
|
>B : typeof X1.B, Symbol(X1.B,Decl(dottedModuleName2.ts,0,9),Decl(dottedModuleName2.ts,21,9))
|
|
|
|
import X3 = A.B.C;
|
|
>X3 : typeof X2.C, Symbol(X3,Decl(dottedModuleName2.ts,37,20))
|
|
>A : typeof X1, Symbol(X1,Decl(dottedModuleName2.ts,0,0),Decl(dottedModuleName2.ts,18,21))
|
|
>B : typeof X1.B, Symbol(X1.B,Decl(dottedModuleName2.ts,0,9),Decl(dottedModuleName2.ts,21,9))
|
|
>C : typeof X2.C, Symbol(X2.C,Decl(dottedModuleName2.ts,21,11))
|
|
|
|
}
|
|
|