THRIFT-4000 Add union example to ThriftTest
Client: Test suite
Patch: Allen George
This closes #1138
diff --git a/test/ThriftTest.thrift b/test/ThriftTest.thrift
index 56adf39..ca70873 100644
--- a/test/ThriftTest.thrift
+++ b/test/ThriftTest.thrift
@@ -115,6 +115,14 @@
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