estanglerbm commented on pull request #1027:
URL: https://github.com/apache/royale-asjs/pull/1027#issuecomment-753300794


   @Harbs Added @royaleemitcoercion to the methods where the return type is 
required, as you suggested.  (It feels like the compiler should be able to 
figure this out on its own, however, and do it automatically.)
   
   Does the compiler automatically skip Language.as() if it determines (at 
compile time) that the value is already IUIComponent?
   
   Also fixed several UIComponent methods that were not returning the right 
value.  Honestly, I don't know how ``return addElement(child) as IUIComponent`` 
even compiled when addElement() returns void.


----------------------------------------------------------------
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.

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


Reply via email to