You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2021/07/31 21:56:00 UTC

[jira] [Created] (THRIFT-5445) cancellationToken cannmot be used as argument name

Jens Geyer created THRIFT-5445:
----------------------------------

             Summary: cancellationToken cannmot be used as argument name
                 Key: THRIFT-5445
                 URL: https://issues.apache.org/jira/browse/THRIFT-5445
             Project: Thrift
          Issue Type: Bug
          Components: netstd - Compiler
            Reporter: Jens Geyer


Because all service methods get an implicit extra parameter named "cancellationToken", the following IDL generates code that cannot be compiled.

{code}
service foo {	
	void bar( 1: i32 cancellationToken)
}
{code}

Compiler Error CS0100 The parameter name 'cancellationToken' is a duplicate.





--
This message was sent by Atlassian Jira
(v8.3.4#803005)