joshtynjala commented on issue #210:
URL: 
https://github.com/apache/royale-compiler/issues/210#issuecomment-1054564268


   > I suspect this applies to any getter/setter property, and not only ones 
accessed using super.
   
   Actually, it looks like I was wrong in that assumption. It appears that it 
fails with `super` specifically because it needs to call the setter directly. 
With `this` instead, it can use normal member access, so nothing special is 
needed there.
   
   This:
   
   ```as3
   this.something = super.mySetter = this.myOtherSetter = value;
   ```
   
   Becomes this:
   
   ```js
   this.com_example_MyClass_something = 
com.example.MyClass.superClass_.set__mySetter.apply(this, [ this.myOtherSetter 
= value]);
   ```
   
   That should make it easier to fix, actually, since we should already have a 
special case for super setters, and all tweaks should be able to stay in that 
one place.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to