tests/cases/compiler/b.ts(1,10): error TS2616: 'Foo' can only be imported by using 'import Foo = require("./a")' or a default import.
tests/cases/compiler/b.ts(1,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.


==== tests/cases/compiler/a.ts (0 errors) ====
    class Foo {}
    export = Foo;
    
==== tests/cases/compiler/b.ts (2 errors) ====
    import { Foo } from './a';
             ~~~
!!! error TS2616: 'Foo' can only be imported by using 'import Foo = require("./a")' or a default import.
                        ~~~~~
!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.