0 Replies Latest reply on Nov 6, 2009 1:02 PM by Jeff Dyer

    [svn:fx-trunk] 11528: ASC was hoisting literal instance initializers to trait values.

    Jeff Dyer Level 1

      Revision: 11528

      Author:   jodyer@adobe.com

      Date:     2009-11-06 13:02:27 -0800 (Fri, 06 Nov 2009)

       

      Log Message:

      ***********

      ASC was hoisting literal instance initializers to trait values. This meant that

      forward references to those initializers were being resolved incorrectly. I've

      turned off the hoisting of initializers for this case.

       

      (bug ASC-2282; r=pdonovan) 

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/ASC-2282

       

      Modified Paths:

      **************

          flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/ConstantEvaluator.java

          flex/sdk/trunk/modules/asc/test/compiler/sanity/IllegalOverrideInterfaceGetter.abc

          flex/sdk/trunk/modules/asc/test/compiler/sanity/IllegalOverrideInterfaceGetter_fail.abc

          flex/sdk/trunk/modules/asc/test/compiler/sanity/b134359.abc

          flex/sdk/trunk/modules/asc/test/compiler/sanity/class1.abc

          flex/sdk/trunk/modules/asc/test/compiler/sanity/flowConst.abc

          flex/sdk/trunk/modules/asc/test/compiler/sanity/init.abc

       

      Removed Paths:

      *************

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1184-NotDefaultValueTypeErr. as

          flex/sdk/trunk/modules/asc/test/compiler/as3/LocalizedErrors/1184-NotDefaultValueTypeErr. err