summaryrefslogtreecommitdiff
path: root/test/ThriftTest.thrift
diff options
context:
space:
mode:
authorYuri Melnikov <Yuri.Miller@icloud.com>2021-09-08 18:46:12 -0400
committerYuxuan 'fishy' Wang <fishywang@gmail.com>2021-09-09 22:19:17 -0700
commit38bd636a1883dbbf4d22ada48e856eaf6243d32e (patch)
tree5651a3891703e08af1049aba9d2d21c053a9f79a /test/ThriftTest.thrift
parent0cc06506b807a2d7fa5183a207e1ce3f9727cf00 (diff)
downloadthrift-38bd636a1883dbbf4d22ada48e856eaf6243d32e.tar.gz
THRIFT-4868: Golang: Fix compilation for optional set<binary> with default values
Diffstat (limited to 'test/ThriftTest.thrift')
-rw-r--r--test/ThriftTest.thrift5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ThriftTest.thrift b/test/ThriftTest.thrift
index ac49aee01..4a1045fcd 100644
--- a/test/ThriftTest.thrift
+++ b/test/ThriftTest.thrift
@@ -411,3 +411,8 @@ struct StructB {
struct OptionalSetDefaultTest {
1: optional set<string> with_default = [ "test" ]
}
+
+struct OptionalBinary {
+ 1: optional set<binary> bin_set = {}
+ 2: optional map<binary,i32> bin_map = {}
+}