-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setter function issue #188
Comments
Hi there, thanks for the report. Currently we don't have anyone working on the compiler, so I can't tell you when this will be fixed. For now, put the assignments on separate lines to work around this. |
Yep, doesn't look like there is much activity. |
Indeed, whenever you find an issue, please keep posting them here. |
If multiple = are used on a single line with setter functions only the last setter is set correctly.
Actionscript:
private var _test:String = "";
private var _test2:String = "";
public function DoubleTest()
{
test = test2 = 'test123';
Window.console.log(_test); // Output undefined
Window.console.log(_test2); // Output 'test123'
}
public function set test2(value:String):void
{
_test2 = value;
}
public function set test(value:String):void {
_test = value;
}
Javascript:
test.DoubleTest = function() {
this._test = "";
this._test2 = "";
this.set_test(this.set_test2("test123"));
console.log(this._test); // Output undefined
console.log(this._test2); // Output 'test123'
};
test.DoubleTest.prototype.set_test2 = function(value) {
this._test2 = value;
};
test.DoubleTest.prototype.set_test = function(value) {
this._test = value;
};
The text was updated successfully, but these errors were encountered: