// @target: es2015
// @strict: false
declare namespace M {
     function foo();
     export function foo();
     function foo();
}

declare namespace M1 {
     export interface Foo {}
     interface Foo {}
}

namespace A {
     interface X {x}
     export namespace X {}
     interface X {y}
}