Skip to content

Commit

Permalink
allow reserved enums to be negative
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsalo authored and copybara-github committed Dec 10, 2022
1 parent 912850b commit 1f58f1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/google/protobuf/internal/descriptor_pool_test1.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ message DescriptorPoolTest2 {
enum NestedEnum {
LAMBDA = 11;
MU = 12;

reserved -1;
reserved 536870913; // 0x20000001
}
optional NestedEnum nested_enum = 1 [default = MU];
optional string nested_field = 2 [default = "lambda"];
Expand Down

0 comments on commit 1f58f1d

Please sign in to comment.