import std/macros func f(x: int): seq[string] = discard macro getReturnType(x: proc): untyped = x.getimpl.params[0] echo getReturnType(f) echo default(getReturnType(f)) & "monkeys" Run
- Introspection over a proc type krakengore
- Introspection over a proc type ynfle
- Introspection over a proc type krakengore
- Introspection over a proc type ynfle
- Introspection over a proc type krakengore
- Introspection over a proc type ynfle
- Introspection over a proc type krakengore
- Introspection over a proc type ynfle
- Introspection over a proc type krakengore
- Introspection over a proc type ynfle
- Introspection over a proc type krakengore
- Introspection over a proc type solo989