TypeScript/tests/baselines/reference/funduleExportedClassIsUsedBeforeDeclaration.types
2015-04-15 16:44:20 -07:00

27 lines
510 B
Plaintext

=== tests/cases/compiler/funduleExportedClassIsUsedBeforeDeclaration.ts ===
interface A { // interface before module declaration
>A : A
(): B.C; // uses defined below class in module
>B : any
>C : B.C
}
declare function B(): B.C; // function merged with module
>B : typeof B
>B : any
>C : B.C
declare module B {
>B : typeof B
export class C { // class defined in module
>C : C
}
}
new B.C();
>new B.C() : B.C
>B.C : typeof B.C
>B : typeof B
>C : typeof B.C