Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExample enum code from documentation does not compile #7343
Comments
|
You can't define two enums with the same values on the global scope. The docs on the page you linked are (now) different than what you quoted, and each enum is in a different message . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of protobuf and what language are you using?
Version: v3.6.1
Language: N/A
What operating system (Linux, Windows, ...) and version?
Linux (Manjaro)
What runtime / compiler are you using (e.g., python version or gcc version)
N/A
What did you do?
Steps to reproduce the behavior:
.protofile, resulting the following contents:What did you expect to see
Code copied directly from the official documentation should compile.
What did you see instead?
Code copied directly from the official documentation fails to compile with the following errors:
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment