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/08/01 11:05:00 UTC

[jira] [Resolved] (THRIFT-5445) "cancellationToken" cannot be used as argument name

     [ https://issues.apache.org/jira/browse/THRIFT-5445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer resolved THRIFT-5445.
--------------------------------
    Fix Version/s: 0.15.0
       Resolution: Fixed

> "cancellationToken" cannot 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
>            Assignee: Jens Geyer
>            Priority: Major
>             Fix For: 0.15.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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)