Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5445

"cancellationToken" cannot be used as argument name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.15.0
    • netstd - Compiler
    • None
    • Patch Available

    Description

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

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

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

      Attachments

        Issue Links

          Activity

            People

              jensg Jens Geyer
              jensg Jens Geyer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m