TypeScript/tests/cases/compiler/declarationEmit_nameConflictsWithAlias.ts

9 lines
No EOL
263 B
TypeScript

// @declaration: true
// @module: commonjs
// Bug 887180
export module C { export interface I { } }
export import v = C;
export module M {
export module C { export interface I { } }
export var w: v.I; // Gets emitted as C.I, which is the wrong interface
}