=== tests/cases/compiler/exportSpecifierReferencingOuterDeclaration2_A.ts ===
declare module X { export interface bar { } }
>X : any
>bar : bar

=== tests/cases/compiler/exportSpecifierReferencingOuterDeclaration2_B.ts ===
declare module X { export interface foo { } }
>X : any
>foo : foo

export { X };
>X : any

export declare function foo(): X.foo;
>foo : () => X.foo
>X : any
>foo : X.foo

export declare function bar(): X.bar; // error
>bar : () => any
>X : any
>bar : No type information available!

