summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ThriftTest.thrift8
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