Dgeodjo / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 1 forks source link

Generator should give error when submessage with callbacks is used inside oneof #148

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a message with callback fields.
2. Put said message inside another message's oneof field.
3. Run generator and try to decode the message.
4. Generator does not complain but decoding will not work properly.

What is the expected output? What do you see instead?
Generator should give an error as callback fields cannot work inside union.

Original issue reported on code.google.com by Petteri.Aimonen on 7 Mar 2015 at 8:06