TypeScript/tests/cases/compiler/moduleSharesNameWithImportDeclarationInsideIt5.ts

16 lines
276 B
TypeScript

module Z {
export module M {
export function bar() {
return "";
}
}
export interface I { }
}
module A.M {
import M = Z.I;
import M = Z.M;
export function bar() {
}
M.bar(); // Should call Z.M.bar
}