proc test2(l:NimNode):NimNode=
    ...
macro test(l:typed):untyped=
    test2(l)

newVarStmt(newIdentNode("res"), newCall(...))) //...is a function return a val 
of type M

and when I call test(res) the res's real type is nnkSym -> nnkCall but, what I 
want res's type is M(nnkObjConstr) So is there any solation?

Reply via email to