summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2021-07-31 23:57:29 +0200
committerJens Geyer <Jens-G@users.noreply.github.com>2021-08-01 13:04:33 +0200
commitc8ae621a0969e00febcc80128d29e38d7f277601 (patch)
tree48a22793e13c3c2895de39a47c3579fe22d5f69b /lib
parent273607d1f40bbd346ad030eadf8150bd81b9e4b1 (diff)
downloadthrift-c8ae621a0969e00febcc80128d29e38d7f277601.tar.gz
THRIFT-5445 "cancellationToken" cannot be used as argument name
Client: netstd Patch: Jens Geyer
Diffstat (limited to 'lib')
-rw-r--r--lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/name_conflicts.thrift6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/name_conflicts.thrift b/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/name_conflicts.thrift
index 66282ba0b..959dc3a25 100644
--- a/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/name_conflicts.thrift
+++ b/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/name_conflicts.thrift
@@ -17,6 +17,7 @@
// Testcases for
// - THRIFT-5091 Netstd generator produces uncompileable code for struct names ending with "_result" or "_args"
// - THRIFT-5444 netstd generator produces uncompileable code for enums ending with "_result" or "_args"
+// - THRIFT-5445 "cancellationToken" cannot be used as argument name
namespace * name_conflicts
@@ -25,11 +26,13 @@ include "name_conflicts.enum.thrift"
struct some_struct_args {
1: name_conflicts.enum.some_args some_args
2: name_conflicts.enum.some_result some_result
+ 3: required i32 cancellationToken
}
exception some_error_result {
1: name_conflicts.enum.some_args some_args
2: name_conflicts.enum.some_result some_result
+ 3: optional i32 cancellationToken
}
service some_service {
@@ -37,8 +40,9 @@ service some_service {
name_conflicts.enum.some_result some_method(
1: name_conflicts.enum.some_args some_args
2: some_struct_args more_args
+ 3: i32 cancellationToken
) throws (
- 1: some_error_result some_error_result
+ 1: some_error_result cancellationToken
)
}