2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/internalModules/importDeclarations/circularImportAlias.ts ===
|
|
|
|
// expected no error
|
|
|
|
|
|
|
|
module B {
|
2014-08-28 21:40:58 +02:00
|
|
|
>B : typeof a.b
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export import a = A;
|
2014-08-28 21:40:58 +02:00
|
|
|
>a : typeof a
|
2014-08-25 19:36:12 +02:00
|
|
|
>A : typeof a
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class D extends a.C {
|
|
|
|
>D : D
|
2014-08-28 21:40:58 +02:00
|
|
|
>a : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>C : a.C
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
id: number;
|
|
|
|
>id : number
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module A {
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : typeof b.a
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class C { name: string }
|
|
|
|
>C : C
|
|
|
|
>name : string
|
|
|
|
|
|
|
|
export import b = B;
|
2014-08-28 21:40:58 +02:00
|
|
|
>b : typeof b
|
2014-08-25 19:36:12 +02:00
|
|
|
>B : typeof b
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var c: { name: string };
|
|
|
|
>c : { name: string; }
|
|
|
|
>name : string
|
|
|
|
|
|
|
|
var c = new B.a.C();
|
|
|
|
>c : { name: string; }
|
2014-08-25 19:36:12 +02:00
|
|
|
>new B.a.C() : A.C
|
|
|
|
>B.a.C : typeof A.C
|
2014-08-15 23:33:16 +02:00
|
|
|
>B.a : typeof A
|
|
|
|
>B : typeof B
|
|
|
|
>a : typeof A
|
2014-08-25 19:36:12 +02:00
|
|
|
>C : typeof A.C
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|