2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/funduleExportedClassIsUsedBeforeDeclaration.ts ===
|
|
|
|
interface A { // interface before module declaration
|
2015-04-13 23:01:57 +02:00
|
|
|
>A : A, Symbol(A, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(): B.C; // uses defined below class in module
|
2015-04-13 23:01:57 +02:00
|
|
|
>B : any, Symbol(B, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 2, 1), Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 3, 26))
|
|
|
|
>C : B.C, Symbol(B.C, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 4, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
declare function B(): B.C; // function merged with module
|
2015-04-13 23:01:57 +02:00
|
|
|
>B : typeof B, Symbol(B, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 2, 1), Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 3, 26))
|
|
|
|
>B : any, Symbol(B, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 2, 1), Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 3, 26))
|
|
|
|
>C : B.C, Symbol(B.C, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 4, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
declare module B {
|
2015-04-13 23:01:57 +02:00
|
|
|
>B : typeof B, Symbol(B, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 2, 1), Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 3, 26))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class C { // class defined in module
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 4, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
new B.C();
|
2014-08-25 19:36:12 +02:00
|
|
|
>new B.C() : B.C
|
2015-04-13 23:01:57 +02:00
|
|
|
>B.C : typeof B.C, Symbol(B.C, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 4, 18))
|
|
|
|
>B : typeof B, Symbol(B, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 2, 1), Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 3, 26))
|
|
|
|
>C : typeof B.C, Symbol(B.C, Decl(funduleExportedClassIsUsedBeforeDeclaration.ts, 4, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
|