[As3]flash.utils.Object will be converted "*" type when compile to as3 #5901

Open
joydance opened this Issue Dec 22, 2016 · 0 comments

Projects

None yet

2 participants

@joydance
joydance commented Dec 22, 2016 edited

in Haxe:
class MyMc extends MovieClip {
override public function gotoAndPlay(f:Object, ?sence:Null):Void {
super.gotoAndPlay(f);
}
}

will be compiled to as3 like this which will cause an incompatible override error:
package {
import flash.events.Event;
import flash.display.MovieClip;
import flash.Boot;
public class NoneLoopMovieClip extends flash.display.MovieClip {
public function NoneLoopMovieClip() : void { if( !flash.Boot.skip_constructor ) {
super();
}}

//here should be: public override function gotoAndPlay(f : Object,sence : String = null) : void
public override function gotoAndPlay(f : *,sence : String = null) : void {
super.gotoAndPlay(f);
}
}
}

@Simn Simn modified the milestone: 4.0 Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment