Skip to main content
flashdictionary
Inspiring
March 5, 2015
Question

ActionScript 2.0 compiler bug: You can call super.anyMethod() and it will compile even though anyMethod does not exist.

  • March 5, 2015
  • 0 replies
  • 301 views

ActionScript 2.0 compiler bug: You can call super.anyMethod() and it will compile even though anyMethod does not exist.

There are a few ASC2.0 compiler bugs floating around, just wondering if these are being worked on? Here is one example:

package

{

  import flash.display.Sprite;

  public class CompilerBugs extends Sprite

  {

  public function CompilerBugs()

  {

  _obj = new ExtendedClass();

  }

  private var _obj:ExtendedClass;

  }

}

package

{

  public class BaseClass

  {

  public function BaseClass()

  {

  }

  }

}

package

{

  public class ExtendedClass extends BaseClass {

  public function ExtendedClass() {

  super.anyMethod();

  }

  }

}

This topic has been closed for replies.