==== tests/cases/compiler/ModuleWithExportedAndNonExportedImportAlias.ts (2 errors) ====
    module A {
        export interface Point {
            x: number;
            y: number;
        }
    
        interface Point3d extends Point {
            z: number;
        }
    }
    
    module B {
        export class Line {
            constructor(public start: A.Point, public end: A.Point) { }
        }
    }
    
    module Geometry {
        export import Points = A;
        import Lines = B;
    
        export var Origin: Points.Point = { x: 0, y: 0 };
    
        // this is valid since B.Line _is_ visible outside Geometry
        export var Unit: Lines.Line = new Lines.Line(Origin, { x: 1, y: 0 });
    }
    
    // expected to work since all are exported
    var p: { x: number; y: number };
    var p: Geometry.Points.Point;
    var p = Geometry.Origin;
    
    var line: { start: { x: number; y: number }; end: { x: number; y: number; } };
    var line = Geometry.Unit;
    
    // not expected to work since non are exported
    var line = Geometry.Lines.Line;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! ModuleWithExportedAndNonExportedImportAlias.ts(37,5): error TS2134: Subsequent variable declarations must have the same type.  Variable 'line' must be of type '{ start: { x: number; y: number; }; end: { x: number; y: number; }; }', but here has type 'any'.
                        ~~~~~
!!! ModuleWithExportedAndNonExportedImportAlias.ts(37,21): error TS2094: The property 'Lines' does not exist on value of type 'typeof Geometry'.
    
    