File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# @nolint
44
55include " test/if/b.thrift"
6+ include " thrift/annotation/thrift.thrift"
67
78typedef i64 T
89
@@ -15,6 +16,7 @@ struct A {
1516 5: map<i32, string> e ;
1617 6: b.Number f = b.Two ;
1718 7: optional string g ;
19+ @thrift.AllowUnsafeRequiredFieldQualifier
1820 8: required string h ;
1921}
2022
Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 */
88
9+ include " thrift/annotation/thrift.thrift"
10+
911const i32 i32Const = 99 ;
1012
1113const bool boolConst = 0 ;
@@ -53,6 +55,7 @@ const string_9425 byteStrConst = "string";
5355const i64 negative = -1 ;
5456
5557struct NagativeFields {
58+ @thrift.AllowUnsafeRequiredFieldQualifier
5659 1: required i64 u = negative ;
5760 2: optional i64 v = -1 ;
5861 3: i64 w = -2 ;
Original file line number Diff line number Diff line change 66 * LICENSE file in the root directory of this source tree.
77 */
88
9+ include " thrift/annotation/thrift.thrift"
10+
911typedef i64 X
1012
1113struct Foo {
1214 1: optional i64 foo1 ;
15+ @thrift.AllowUnsafeRequiredFieldQualifier
1316 2: required bool foo2 ;
1417 3: Bar foo3 ;
1518 4: X foo4 ;
Original file line number Diff line number Diff line change 88
99hs_include "if/hs_test_instances.hs"
1010
11+ include " thrift/annotation/thrift.thrift"
12+
1113typedef i64 X (hs.newtype)
1214typedef X Y
1315typedef Y Z (hs.newtype)
@@ -24,6 +26,7 @@ union tUnion {
2426}
2527
2628struct TestStruct {
29+ @thrift.AllowUnsafeRequiredFieldQualifier
2730 1: required bool f_bool ;
2831 2: byte f_byte ;
2932 3: double f_double ;
You can’t perform that action at this time.
0 commit comments