incompatibleAssignmentInEnumComputedNameNoFlake.ts(4,5): error TS1164: Computed property names are not allowed in enums.
incompatibleAssignmentInEnumComputedNameNoFlake.ts(5,23): error TS2322: Type 'string' is not assignable to type 'number'.


==== incompatibleAssignmentInEnumComputedNameNoFlake.ts (2 errors) ====
    // TS2322: Type 'string' is not assignable to type 'number'.
    let target: number;
    enum E {
        [(() => {
        ~~~~~~~~~
            const text = (target = "value");
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          ~~~~~~
!!! error TS2322: Type 'string' is not assignable to type 'number'.
            return text.length;
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        })()]
    ~~~~~~~~~
!!! error TS1164: Computed property names are not allowed in enums.
    }