import macros macro test(x: varargs[typed], y: varargs[untyped]) = for i in x: echo i.treeRepr echo "Second" for i in y: echo i.treeRepr test(100, 200, "Hello world", y = 300, "bob") # This prints: # IntLit 100 # IntLit 200 # StrLit "Hello world" # Second # StrLit "bob"