26 lines
510 B
Text
26 lines
510 B
Text
=== 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
|
|
|