• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

Contributor ,
Mar 05, 2015 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

265

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
community guidelines