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

thrift client codegen fails due to problematic names

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: D - Compiler
    • Labels:
      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

            People

            • Assignee:
              Unassigned
              Reporter:
              sibnick Tolstokulakov Nikolay
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: