diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-04-19 16:19:57 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2019-04-19 16:19:57 -0700 |
commit | 151ebc8a2925bca5210ac447156a6a783f1d9337 (patch) | |
tree | 15ff3f0b9d15dc18cd56ffd637f9d177e887a60d /tests/json/test.proto | |
parent | cf35baa1ad70f0dca734f93bcc2b54d8d059bcdd (diff) |
Fixed oneof case accessor to cast to enum for C++.
Diffstat (limited to 'tests/json/test.proto')
-rw-r--r-- | tests/json/test.proto | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/json/test.proto b/tests/json/test.proto index e659001..2db0388 100644 --- a/tests/json/test.proto +++ b/tests/json/test.proto @@ -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 { |