tests/cases/compiler/b.ts(1,9): error TS2661: Cannot export 'X'. Only local declarations can be exported from a module.


==== tests/cases/compiler/a.d.ts (0 errors) ====
    
    declare class X { }
    
==== tests/cases/compiler/b.ts (1 errors) ====
    export {X};
            ~
!!! error TS2661: Cannot export 'X'. Only local declarations can be exported from a module.
    export function f() {
        var x: X;
        return x;
    } 
    