27 lines
518 B
Plaintext
27 lines
518 B
Plaintext
=== tests/cases/compiler/funduleExportedClassIsUsedBeforeDeclaration.ts ===
|
|
interface A { // interface before module declaration
|
|
>A : A
|
|
|
|
(): B.C; // uses defined below class in module
|
|
>B : unknown
|
|
>C : B.C
|
|
}
|
|
declare function B(): B.C; // function merged with module
|
|
>B : typeof B
|
|
>B : unknown
|
|
>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
|
|
|