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

Uncompileable Delphi code generated for typedef'd structs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.2
    • Component/s: Delphi - Compiler
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      This IDL

      struct Sample { 
      }
      
      typedef Sample Foobar
      
      struct Container {
        1: Sample directUse
        2: Foobar viaTypedef
      }
      

      gives

      line (292) Error: E2250 There is no overloaded version of 'Append' that can be called with these arguments 
      

      because

      __sb.Append(ViaTypedef);
      

      should be

      __sb.Append(ViaTypedef.ToString());
      

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              jensg Jens Geyer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: