yishayw opened a new issue #139: ArrayCollection - comparison of item to null emits setProperty() URL: https://github.com/apache/royale-compiler/issues/139 Test case: ``` <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.apache.org/royale/mx" applicationComplete="init()" width="600" height="400" > <fx:Script> <![CDATA[ import mx.collections.ArrayCollection; private function init():void { var myDp:ArrayCollection = new ArrayCollection(); myDp.addItem("hello1"); if (myDp[0] != null) // bad line { trace("ok...") } else { trace("not ok") } } ]]> </fx:Script> </mx:Application> ``` The line commented with //bad transpiles to: ` if (myDp.setProperty(0, null)) {` which yields a 'not ok' result.
---------------------------------------------------------------- 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] With regards, Apache Git Services
