小编Geo*_*dov的帖子

Haxe 获取函数参数类型

我有这样的haxe代码:

var fn:String->Int = function(s:String):Int{
    return 1;
}

getParameterType(fn,1);//Should return String as it is first parameter of fn
Run Code Online (Sandbox Code Playgroud)

函数 getParameterType 代码应该是什么样的?

reflection haxe

1
推荐指数
1
解决办法
937
查看次数

标签 统计

haxe ×1

reflection ×1