diff options
author | Allen George <allen.george@gmail.com> | 2016-12-11 08:33:52 -0500 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2016-12-11 21:31:22 +0100 |
commit | 60611917cf309d2a25b9cd8f8b5631784b07323d (patch) | |
tree | d10332c14bee8f32b50b2bd5077bfbc561d49406 | |
parent | c3a3f653b66b7cccf61c936dc349de27b8a18899 (diff) | |
download | thrift-60611917cf309d2a25b9cd8f8b5631784b07323d.tar.gz |
THRIFT-4000 Add union example to ThriftTest
Client: Test suite
Patch: Allen George
This closes #1138
-rw-r--r-- | test/ThriftTest.thrift | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ThriftTest.thrift b/test/ThriftTest.thrift index 56adf3971..ca7087375 100644 --- a/test/ThriftTest.thrift +++ b/test/ThriftTest.thrift @@ -115,6 +115,14 @@ struct CrazyNesting { 4: binary binary_field } +union SomeUnion { + 1: map<Numberz, UserId> map_thing, + 2: string string_thing, + 3: i32 i32_thing, + 4: Xtruct3 xtruct_thing, + 5: Insanity insanity_thing +} + exception Xception { 1: i32 errorCode, 2: string message |