TypeScript/tests/cases/compiler/exportAssignedNamespaceIsVisibleInDeclarationEmit.ts
Wesley Wigham 7ad72d2440
Rework symbol visibility checking to allow for multiple potential containers (#24971)
* Rework symbol visibility checking to allow for multiple potential containers

* Express a preference for the local symbol if accessible from the enclosing declaration
2018-07-05 16:00:07 -07:00

10 lines
231 B
TypeScript

// @declaration: true
// @filename: thing.d.ts
declare namespace Foo {
export interface Bar {}
export function f(): Bar;
}
export = Foo;
// @filename: index.ts
import { f } from "./thing";
export const thing = f();