redundantDeclareInEnumComputedNameNoFlake.ts(3,5): error TS1164: Computed property names are not allowed in enums.
redundantDeclareInEnumComputedNameNoFlake.ts(4,9): error TS1235: A namespace declaration is only allowed at the top level of a namespace or module.
redundantDeclareInEnumComputedNameNoFlake.ts(5,13): error TS1038: A 'declare' modifier cannot be used in an already ambient context.


==== redundantDeclareInEnumComputedNameNoFlake.ts (3 errors) ====
    // TS1038: A 'declare' modifier cannot be used in an already ambient context.
    export enum Values {
        [(function () {
        ~~~~~~~~~~~~~~~
            declare namespace Nested {
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            ~~~~~~~
!!! error TS1235: A namespace declaration is only allowed at the top level of a namespace or module.
                declare const value: number;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                ~~~~~~~
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
            }
    ~~~~~~~~~
        }).name] = 1,
    ~~~~~~~~~~~~
!!! error TS1164: Computed property names are not allowed in enums.
    }