TypeScript/tests/baselines/reference/funduleExportedClassIsUsedBeforeDeclaration.types

27 lines
510 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/funduleExportedClassIsUsedBeforeDeclaration.ts ===
interface A { // interface before module declaration
>A : A
2014-08-15 23:33:16 +02:00
(): B.C; // uses defined below class in module
>B : any
>C : B.C
2014-08-15 23:33:16 +02:00
}
declare function B(): B.C; // function merged with module
>B : typeof B
>B : any
>C : B.C
2014-08-15 23:33:16 +02:00
declare module B {
>B : typeof B
2014-08-15 23:33:16 +02:00
export class C { // class defined in module
>C : C
2014-08-15 23:33:16 +02:00
}
}
new B.C();
2014-08-25 19:36:12 +02:00
>new B.C() : B.C
>B.C : typeof B.C
>B : typeof B
>C : typeof B.C
2014-08-15 23:33:16 +02:00