// @target: es2015
// @filename: module.d.ts
declare namespace A {
    export namespace Point {
        export var Origin: {
            x: number;
            y: number;
        }
    }
}

// @filename: classPoint.ts
namespace A {
    export class Point {
        constructor(public x: number, public y: number) { }
    }
}

// @filename: test.ts
var p: { x: number; y: number; }
var p = A.Point.Origin;
var p = new A.Point(0, 0); // unexpected error here, bug 840000