TypeScript/tests/cases/compiler/mergeWithImportedNamespace.ts
Collins Abitekaniza c0573c59c9 Prevent collision of imported type with exported declarations in current module (#31231)
* check for exported type name for conflict

* refactor baseline tests for import/export name collision
2019-09-27 07:55:04 -07:00

9 lines
188 B
TypeScript

// @module:commonjs
// @filename: f1.ts
export namespace N { export var x = 1; }
// @filename: f2.ts
import {N} from "./f1";
export namespace N {
export interface I {x: any}
}