Skip to content

Enums starting with a negative number now correctly autonumber #150

@sophiajt

Description

@sophiajt

The following code:

enum E {
    a = -5, b, c
}

Now emits starting with -5 for a, then -4 for b and -3 for c. Previously b = 0, c = 1, unexpectedly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking ChangeWould introduce errors in existing codeBy DesignDeprecated - use "Working as Intended" or "Design Limitation" instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions