TypeScript/tests/cases/compiler/noCrashOnImportShadowing.ts
Wesley Wigham 62eaaf9206 Fix crash when attempting to merge an import with a local declaration (#18032)
* There should be no crash when attempting to merge an import with a local declaration

* Show symbol has actually merged within the module
2017-08-24 17:12:42 -07:00

25 lines
347 B
TypeScript

// @filename: b.ts
export const zzz = 123;
// @filename: a.ts
import * as B from "./b";
interface B {
x: string;
}
const x: B = { x: "" };
B.zzz;
export { B };
// @filename: index.ts
import { B } from "./a";
const x: B = { x: "" };
B.zzz;
import * as OriginalB from "./b";
OriginalB.zzz;
const y: OriginalB = x;