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.