//// [tests/cases/conformance/internalModules/DeclarationMerging/FunctionAndModuleWithSameNameAndDifferentCommonRoot.ts] ////

//// [function.ts]
namespace A {
    export function Point() {
        return { x: 0, y: 0 };
    }
}

//// [module.ts]
namespace B {
    export namespace Point {
        export var Origin = { x: 0, y: 0 };
    }
}

//// [test.ts]
var fn: () => { x: number; y: number };
var fn = A.Point;

var cl: { x: number; y: number; }
var cl = B.Point.Origin;


//// [function.js]
"use strict";
var A;
(function (A) {
    function Point() {
        return { x: 0, y: 0 };
    }
    A.Point = Point;
})(A || (A = {}));
//// [module.js]
"use strict";
var B;
(function (B) {
    let Point;
    (function (Point) {
        Point.Origin = { x: 0, y: 0 };
    })(Point = B.Point || (B.Point = {}));
})(B || (B = {}));
//// [test.js]
"use strict";
var fn;
var fn = A.Point;
var cl;
var cl = B.Point.Origin;
