[ 
https://issues.apache.org/jira/browse/FLEX-35070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15235467#comment-15235467
 ] 

Alex Harui commented on FLEX-35070:
-----------------------------------

I don't know, but it doesn't sound easy.  I also don't know how well the 
compiler can detect that a more complex expression on the right hand side is of 
type XMLList.

An alternative is to add an option to the compiler that generates a warning on 
every variable access of type Object and *.  It would show you where you've 
lost strong-typing in your code.  I've been told you will be amazed at how much 
of your code isn't strong-typed.

> "for each" not working in XMLList
> ---------------------------------
>
>                 Key: FLEX-35070
>                 URL: https://issues.apache.org/jira/browse/FLEX-35070
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>    Affects Versions: Apache FalconJX 0.6.0
>            Reporter: Harbs
>
> I don't have a full test case right now, but I believe the following will 
> fail.
> var newList:XMLList = new XMLList();
> newList.appendChild(<foo/>);
> var xmlItem:XML;
> for each(xmlItem in oldList)
>   newList.appendChild(xmlItem);
> If necessary, I can put together a (non)working test case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to