as3hx icon indicating copy to clipboard operation
as3hx copied to clipboard

Correct "is Function" porting

Open andrew-git opened this issue 7 years ago • 0 comments

as3 code for example:

package {
    public class Issue {
        public function Issue() {
            if(f is Function){}
        }
    }
}

expected result


class Issue
{
    public function new()
    {
        if(Reflect.isFunction(f)){}
    }
}

actual result


class Issue
{
    public function new()
    {
        if(Std.is(f, Function)){}
    }
}

andrew-git avatar Oct 27 '18 08:10 andrew-git