diff options
author | Nobuaki Sukegawa <nsuke@apache.org> | 2015-11-17 11:01:17 +0900 |
---|---|---|
committer | Roger Meier <roger@apache.org> | 2015-11-28 00:08:07 +0100 |
commit | e841b3dac619a5e5d3523d059d48db1a12e41360 (patch) | |
tree | 183832cb3b7b9c6cdf10c9f1183a47f8410905ce /test/ThriftTest.thrift | |
parent | b9641e0949f5de5a3c8079758fdd638889614143 (diff) | |
download | thrift-e841b3dac619a5e5d3523d059d48db1a12e41360.tar.gz |
THRIFT-162 Thrift structures are unhashable, preventing them from being used as set elements
Client: Python
Patch: David Reiss, Nobuaki Sukegawa
This closes #714
Diffstat (limited to 'test/ThriftTest.thrift')
-rw-r--r-- | test/ThriftTest.thrift | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ThriftTest.thrift b/test/ThriftTest.thrift index 414f9a542..a58ed9712 100644 --- a/test/ThriftTest.thrift +++ b/test/ThriftTest.thrift @@ -105,12 +105,13 @@ struct Insanity { 1: map<Numberz, UserId> userMap, 2: list<Xtruct> xtructs -} +} (python.immutable= "") struct CrazyNesting { 1: string string_field, 2: optional set<Insanity> set_field, - 3: required list< map<set<i32>,map<i32,set<list<map<Insanity,string>>>>>> list_field, + 3: required list<map<set<i32> (python.immutable = ""), + map<i32,set<list<map<Insanity,string>(python.immutable = "")> (python.immutable = "")>>>> list_field, 4: binary binary_field } |