Highlighted

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

Contributor ,
Mar 05, 2015

Copy link to clipboard

Copied

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();

  }

  }

}

TOPICS
Performance issues

Views

160

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

Contributor ,
Mar 05, 2015

Copy link to clipboard

Copied

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();

  }

  }

}

TOPICS
Performance issues

Views

161

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 05, 2015 0

Have something to add?

Join the conversation