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

thrift client codegen fails due to problematic names

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • D - Compiler
    • None

    Description

      thrift/source/thrift/codegen/client.d-mixin-86(272,19): Error: function expected before (), not skip of type int

      This happens if I have parameter with name 'skip' in my interface:

      enum methodMeta = [
      TMethodMeta(`getBrands`,
      [TParamMeta(`limit`, 1), TParamMeta(`skip`, 2)]
      ), ....

      As workaround I rename parameter, but compiler error is not very clear in this case.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sibnick Tolstokulakov Nikolay

            Dates

              Created:
              Updated:

              Slack

                Issue deployment