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