awakesecurity / proto3-suite

Haskell Protobuf Implementation

Home Page:https://hackage.haskell.org/package/proto3-suite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raise compilation error on nonzero first enum value

intractable opened this issue · comments

The proto3 spec states that the default value for enmerated types is the first defined enum value, which must be 0.

We currently allow first values other than 0, and do not raise a compilation error as other proto3 suite tools do. E.g.,

  enum MyEnum {
    ENUM1 = 1;
    ENUM2 = 2;
  }

is an example of an enum definition which should produce a compilation error.

This issue is to track the fix.

commented

This appears to be fixed here, can this issue be closed?