Skip to content

ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH failing even with allow_alias = true #377

@bjoernmayer

Description

@bjoernmayer

ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH does not recognise that an enum already contains an alias for the "ZERO VALUE" that has the required suffix.

It shouldn't fail in that case

enum ProtoSentiment {
        option allow_alias = true;
        PROTO_SENTIMENT_UNSPECIFIED = 0;
        PROTO_SENTIMENT_NEUTRAL = 0;    
        PROTO_SENTIMENT_NEGATIVE = 11;
        PROTO_SENTIMENT_POSITIVE = 1;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions