Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.6, 0.6.1, 0.7
-
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;.