Skip to content

Commit

Permalink
Merge pull request protocolbuffers#164 from haberman/oneofcase
Browse files Browse the repository at this point in the history
Fixed oneof case accessor to cast to enum for C++.
  • Loading branch information
haberman authored Apr 19, 2019
2 parents 4566fdf + 3988b92 commit a865255
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/json/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ message TestMessage {
map<string, int32> map_string_int32 = 23;
map<string, bool> map_string_bool = 24;
map<string, SubMessage> map_string_msg = 25;

oneof o {
int32 oneof_int32 = 26;
int64 oneof_int64 = 27;
}
}

message SubMessage {
Expand Down

0 comments on commit a865255

Please sign in to comment.