royale-asjs
royale-asjs copied to clipboard
Compiller Error 1137: Calling Static ToString Function from another class
test case:
package org.comp
{
public class ToStringImp
{
public static function toString(str:String):String
{
return str;
}
}
}
package org.comp
{
import org.apache.royale.events.EventDispatcher;
import org.apache.royale.events.IEventDispatcher;
public class CompError extends EventDispatcher
{
public function CompError(target:IEventDispatcher=null)
{
super(target);
}
override public function toString():String
{
//compiler message :
//1137: Incorrect number of arguments. Expected no more than 0
return ToStringImp.toString("some string value");
}
}
}
We have a lot of open issues. Anyone know if this is still an issue?