tests/cases/compiler/file2.ts(1,9): error TS2661: Cannot export 'x'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(1,12): error TS2661: Cannot export 'x'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(2,9): error TS2661: Cannot export 'x1'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(2,13): error TS2661: Cannot export 'x1'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(4,9): error TS2661: Cannot export 'a'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(4,12): error TS2661: Cannot export 'a'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(5,9): error TS2661: Cannot export 'b'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(5,12): error TS2661: Cannot export 'b'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(8,9): error TS2661: Cannot export 'x'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(9,9): error TS2661: Cannot export 'x1'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(10,9): error TS2661: Cannot export 'a'. Only local declarations can be exported from a module.
tests/cases/compiler/file2.ts(11,9): error TS2661: Cannot export 'b'. Only local declarations can be exported from a module.


==== tests/cases/compiler/file1.d.ts (0 errors) ====
    declare var x: number;
    declare var x1: number;
    declare let {a, b}: {a: number, b: number};
    
==== tests/cases/compiler/file2.ts (12 errors) ====
    export {x, x as y};
            ~
!!! error TS2661: Cannot export 'x'. Only local declarations can be exported from a module.
               ~
!!! error TS2661: Cannot export 'x'. Only local declarations can be exported from a module.
    export {x1, x1 as y1};
            ~~
!!! error TS2661: Cannot export 'x1'. Only local declarations can be exported from a module.
                ~~
!!! error TS2661: Cannot export 'x1'. Only local declarations can be exported from a module.
    
    export {a, a as a1};
            ~
!!! error TS2661: Cannot export 'a'. Only local declarations can be exported from a module.
               ~
!!! error TS2661: Cannot export 'a'. Only local declarations can be exported from a module.
    export {b, b as b1};
            ~
!!! error TS2661: Cannot export 'b'. Only local declarations can be exported from a module.
               ~
!!! error TS2661: Cannot export 'b'. Only local declarations can be exported from a module.
    
    
    export {x as z};
            ~
!!! error TS2661: Cannot export 'x'. Only local declarations can be exported from a module.
    export {x1 as z1};
            ~~
!!! error TS2661: Cannot export 'x1'. Only local declarations can be exported from a module.
    export {a as a2};
            ~
!!! error TS2661: Cannot export 'a'. Only local declarations can be exported from a module.
    export {b as b2};
            ~
!!! error TS2661: Cannot export 'b'. Only local declarations can be exported from a module.
    