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

Uncompileable Delphi code generated for typedef'd structs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.2
    • Delphi - Compiler
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: