Closed sgerbino closed 3 years ago
Hello sgerbio,
Thank you for taking the time to report this issue. It was bound to happen some time, lucky the fix is simple.
The enum class which holds all the field numbers is called id. The definition of this enum conflicts with the definition of the getter function for your field called id. A preliminary fix is made by renaming the enum from id to ID. The chance of another name conflict is however ever present.
Because this is also a breaking change for anybody using oneof's, some more consideration will be taken on a proper way to prevent name collisions in the future. A fix will however be available soon.
Best regards,
Bart
Hello sgerbio,
After deliberation two decisions where made:
Best regards,
Bart
Hello, great project thanks for sharing!
I have a proto file that contains a member
id
:The generated code uses an enum
id
and causing a conflict while compiling.Related error: