summaryrefslogtreecommitdiff
path: root/test/ThriftTest.thrift
diff options
context:
space:
mode:
authorBryan Duxbury <bryanduxbury@apache.org>2011-10-13 21:32:52 +0000
committerBryan Duxbury <bryanduxbury@apache.org>2011-10-13 21:32:52 +0000
commit6c928f3f5f91afa0917f4625f39b4048865a6027 (patch)
treef4d717f03d1887870e86a695c4c324002efb1060 /test/ThriftTest.thrift
parentbf12239d2e98d475c5506e5511cc0fe3fea148da (diff)
downloadthrift-6c928f3f5f91afa0917f4625f39b4048865a6027.tar.gz
THRIFT-1130. compiler: Add the ability to specify symbolic default value for optional boolean
Patch: Nevo Hed git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1183115 13f79535-47bb-0310-9956-ffa450edef68
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 17b0295c4..51f42b4fa 100644
--- a/test/ThriftTest.thrift
+++ b/test/ThriftTest.thrift
@@ -226,3 +226,8 @@ struct ListBonks {
struct NestedListsBonk {
1: list<list<list<Bonk>>> bonk
}
+
+struct BoolTest {
+ 1: optional bool b = true;
+ 2: optional string s = "true";
+}