mmacroamb.nim 284 B

1234567891011
  1. # issue #12732
  2. import std/macros
  3. const getPrivate3_tmp* = 0
  4. const foobar1* = 0 # comment this or make private and it'll compile fine
  5. macro foobar4*(): untyped =
  6. newLit "abc"
  7. template currentPkgDir2*: string = foobar4()
  8. macro currentPkgDir2*(dir: string): untyped =
  9. newLit "abc2"