-
Notifications
You must be signed in to change notification settings - Fork 15.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Proto3] Error compiling reserved values in enum #4010
Comments
What's the error message? |
Missing numeric value for enum constant. |
Which version were you using? This I believe was first introduced in 3.5.0. |
Confirmed that on 3.5.0, |
Sorry for the confusion around this but usually when we talk about proto2 and proto3 we don't mean the version number (like 3.5.0) but instead we are talking about whether you have |
I see. That makes sense. Thanks for clarifying this. It would be worth the effort to document it somewhere clearly, perhaps on the readme page or at the tops of the proto2 and proto3 pages I linked to above. |
According to this documentation for proto3 (https://developers.google.com/protocol-buffers/docs/proto3#enum_reserved), you can add reserved values using the
reserved
statement, but this no longer compiles.The text was updated successfully, but these errors were encountered: