Upgraded to 0.8.2 today and am getting hundreds of errors across our (quite vast) code base. This one was strange though:
public set angle(angle:number) {
angle = Kiwi.Utils.FastMath.wrapAngle(angle);
if (angle !== this._angle)
{
this._angle = angle;
this.buildCSS(true);
}
}
It complains about the first line of the method, saying "the left-hand side of an assignment expression must be a variable, property or indexer", which is most strange as 'angle' is clearly a variable passed into the method.
It also complains about the "if" line, saying "Operator !== cannot be applied to types '(angle:number) => any' and 'number'
Which is equally puzzling. Finally the line "this._angle = angle" errors with "Cannot convert '(angle:number) => any' to 'number'"
It appears that getters and setters are basically broken. Is this all related to the bug I saw filed about setters having the same name as variables? We have to roll back to 0.8.1 because of this :(