【发布时间】:2019-05-02 15:38:18
【问题描述】:
如何用宏获取类方法的参数类型?
class A{
public function new(){
//this how get method out arg[0] Type with macro?
var arg0IsInt:Bool=arg0IsInt(out);
}
public function out(a:Int){ return true; }
macro public function arg0IsInt(e:Expr):Bool{
}
}
当我构造一个字母时,我将调用一个具有类型参数的方法。
【问题讨论】: