Harbs created FLEX-35067:
----------------------------

             Summary: XML literals are not compiled into constructors when the 
variable was already initialized
                 Key: FLEX-35067
                 URL: https://issues.apache.org/jira/browse/FLEX-35067
             Project: Apache Flex
          Issue Type: Bug
          Components: FalconJX
            Reporter: Harbs


var child:XML = <pop><child name="Sam"/></pop>;
xml1.appendChild(child);
child = <pop><child name="George"/></pop>;
xml1.appendChild(child);

compiles into:
  var /** @type {XML} */ child = new XML( '<pop><child name="Sam"/></pop>') ;
  xml1.appendChild(child);
  child = '<pop><child name="George"/></pop>';
  xml1.appendChild(child);




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

Reply via email to