a.ts(1,11): error TS1280: Namespaces are not allowed in global script files when 'verbatimModuleSyntax' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement.
a.ts(2,23): error TS2503: Cannot find namespace 'x'.
a.ts(12,11): error TS1280: Namespaces are not allowed in global script files when 'verbatimModuleSyntax' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement.
a.ts(13,5): error TS2440: Import declaration conflicts with local declaration of 'A'.
a.ts(13,5): error TS2748: Cannot access ambient const enums when 'verbatimModuleSyntax' is enabled.


==== a.ts (5 errors) ====
    namespace a {
              ~
!!! error TS1280: Namespaces are not allowed in global script files when 'verbatimModuleSyntax' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement.
        export import A = x.A;
                          ~
!!! error TS2503: Cannot find namespace 'x'.
        export type A = number;
    }
    namespace b {
        import A = a.A;
    }
    
    declare namespace c {
        export const enum A { B }
    }
    namespace d {
              ~
!!! error TS1280: Namespaces are not allowed in global script files when 'verbatimModuleSyntax' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement.
        export import A = c.A;
        ~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2440: Import declaration conflicts with local declaration of 'A'.
        ~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2748: Cannot access ambient const enums when 'verbatimModuleSyntax' is enabled.
        export type A = number;
    }
    namespace e {
        import A = d.A;
    }
    