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


   Yeah, ``return addElement(...) as IUIComponent`` when addElement() is 
defined as ``function addElement(...):void`` is strange.  Seems like the 
compiler should be able to detect return type "void" and say that any "as" 
conversion is invalid.
   
   Anyway, this PR is about removing the directives that were preventing 
correct return results in several UIComponent methods.  It enforces "as", now.


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