Open alaviss opened 3 years ago
import macros
macro foo(): untyped =
let env = nskType.genSym"Env"
result = quote:
type env
= ref object of RootObj
proc foobar(e: env
) = discard
macro bar(): untyped =
let env = nskType.genSym"Env"
result = quote:
type env
= ref object of RootObj
let e = `env`()
foobar(e)
foo() bar() #
Example
Current Output
Expected Output
Additional Information