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

AS3 compiler generates incorrect code for setting default values in constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.6, 0.6.1, 0.7
    • 0.7
    • AS3 - Compiler
    • None
    • Mac OS X 10.6.7

    • Patch Available

    Description

      If you create a thrift struct and set a field to have a default value, the compiler puts the code to set that default value in the constructor of the generated class. When it does this, it adds :Type to the right of the variable, e.g., this.count:int = 0;. The generated statement isn't correct syntax and fails to compile. The correct syntax would simply be this.count = 0;.

      Attachments

        Activity

          People

            e7hz3r0 Ethan Urie
            e7hz3r0 Ethan Urie
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: