TypeScript/tests/baselines/reference/circularImportAlias.types

49 lines
712 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/internalModules/importDeclarations/circularImportAlias.ts ===
// expected no error
module B {
>B : typeof a.b
2014-08-15 23:33:16 +02:00
export import a = A;
>a : typeof a
>A : typeof a
2014-08-15 23:33:16 +02:00
export class D extends a.C {
>D : D
>a.C : any
>a : typeof a
>C : a.C
2014-08-15 23:33:16 +02:00
id: number;
>id : number
2014-08-15 23:33:16 +02:00
}
}
module A {
>A : typeof b.a
2014-08-15 23:33:16 +02:00
export class C { name: string }
>C : C
>name : string
2014-08-15 23:33:16 +02:00
export import b = B;
>b : typeof b
>B : typeof b
2014-08-15 23:33:16 +02:00
}
var c: { name: string };
>c : { name: string; }
>name : string
2014-08-15 23:33:16 +02:00
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
>B.a : typeof A
>B : typeof B
>a : typeof A
>C : typeof A.C
2014-08-15 23:33:16 +02:00