greg-dove commented on issue #185:
URL: https://github.com/apache/royale-compiler/issues/185#issuecomment-863719512


   @Laturine the support for iteration over ArrayCollection (and Proxy-based 
instances in general) should be more robust following a recent compiler commit. 
   Example fixes:
   `for each (var thing:Object in something as ArrayCollection)`
   `for each (var thing:Object in ArrayCollection(something))`
   `for each (var thing:Object in aMethodThatReturnsAnArrayCollection())`
   
   the above were not working, but now should be (with new compiler build)
   
   and also null safety:
   var myNullReference:ArrayCollection = null;
   `for each (var thing:Object in myNullReference)`
   the above was throwing a runtime error, but now should not be (it skips the 
loop body, as it should, with new compiler build)
   
   


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