2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/internalModules/importDeclarations/circularImportAlias.ts ===
|
|
|
|
// expected no error
|
|
|
|
|
|
|
|
module B {
|
2015-04-13 23:01:57 +02:00
|
|
|
>B : typeof a.b, Symbol(a.b, Decl(circularImportAlias.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export import a = A;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : typeof a, Symbol(a, Decl(circularImportAlias.ts, 2, 10))
|
|
|
|
>A : typeof a, Symbol(a, Decl(circularImportAlias.ts, 7, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class D extends a.C {
|
2015-04-13 23:01:57 +02:00
|
|
|
>D : D, Symbol(D, Decl(circularImportAlias.ts, 3, 24))
|
|
|
|
>a.C : any, Symbol(a.C, Decl(circularImportAlias.ts, 9, 10))
|
|
|
|
>a : typeof a, Symbol(a, Decl(circularImportAlias.ts, 2, 10))
|
|
|
|
>C : a.C, Symbol(a.C, Decl(circularImportAlias.ts, 9, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
id: number;
|
2015-04-13 23:01:57 +02:00
|
|
|
>id : number, Symbol(id, Decl(circularImportAlias.ts, 4, 32))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module A {
|
2015-04-13 23:01:57 +02:00
|
|
|
>A : typeof b.a, Symbol(b.a, Decl(circularImportAlias.ts, 7, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class C { name: string }
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(circularImportAlias.ts, 9, 10))
|
|
|
|
>name : string, Symbol(name, Decl(circularImportAlias.ts, 10, 20))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export import b = B;
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : typeof b, Symbol(b, Decl(circularImportAlias.ts, 10, 35))
|
|
|
|
>B : typeof b, Symbol(b, Decl(circularImportAlias.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var c: { name: string };
|
2015-04-13 23:01:57 +02:00
|
|
|
>c : { name: string; }, Symbol(c, Decl(circularImportAlias.ts, 14, 3), Decl(circularImportAlias.ts, 15, 3))
|
|
|
|
>name : string, Symbol(name, Decl(circularImportAlias.ts, 14, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var c = new B.a.C();
|
2015-04-13 23:01:57 +02:00
|
|
|
>c : { name: string; }, Symbol(c, Decl(circularImportAlias.ts, 14, 3), Decl(circularImportAlias.ts, 15, 3))
|
2014-08-25 19:36:12 +02:00
|
|
|
>new B.a.C() : A.C
|
2015-04-13 23:01:57 +02:00
|
|
|
>B.a.C : typeof A.C, Symbol(A.C, Decl(circularImportAlias.ts, 9, 10))
|
|
|
|
>B.a : typeof A, Symbol(B.a, Decl(circularImportAlias.ts, 2, 10))
|
|
|
|
>B : typeof B, Symbol(B, Decl(circularImportAlias.ts, 0, 0))
|
|
|
|
>a : typeof A, Symbol(B.a, Decl(circularImportAlias.ts, 2, 10))
|
|
|
|
>C : typeof A.C, Symbol(A.C, Decl(circularImportAlias.ts, 9, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|