The `getAst` template gets expanded before `getAst` is called for generic proc. This may be a bug. Is there any reason you want to pass the arg as a `typedesc` instead of plain `NimNode`? If not, the signature `proc gen(T: NimNode): NimNode` should work.
- Passing a type through a macro? zevv
- Re: Passing a type through a macro? kaushalmodi
- Re: Passing a type through a macro? jasper
