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

Reply via email to