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

Constant expects type to be defined before

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 0.19.0
    • Compiler (General)
    • None

    Description

      struct Test {
      10: optional Foo foo = {};
      }
      
      struct Foo {
      10: optional string bar;
      }
      

      Tried with thrift 0.18.0/0.18.1

      [ERROR] thrift failed output: Type "Foo" not defined
      

       

      Best guess can be related with https://issues.apache.org/jira/browse/THRIFT-5626

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: