extensionbug.proto 231 B

123456789101112131415161718
  1. syntax = "proto2";
  2. message Message1
  3. {
  4. optional uint32 fieldA = 1;
  5. extensions 30 to max;
  6. }
  7. message Message2
  8. {
  9. extend Message1
  10. {
  11. optional Message2 extras = 30;
  12. }
  13. optional uint32 field1 = 1;
  14. optional uint32 field2 = 2;
  15. }