Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Rendering of return statements in typed AST #10805
import macros proc test_func(x: int): int = if x mod 2 == 0: return x + 2 else: return 0 macro dumpSym(someproc: typed) : untyped = echo someProc.getImpl.repr dumpSym(test_func)
this is not valid AST. It is easy to patch renderer to handle return statement better.