This commit is contained in:
Andreas Rumpf 2018-01-18 11:40:18 +01:00
commit 6a2b57b4aa
2 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,19 @@
import macros
# bug #7093
macro foobar(arg: untyped): untyped =
let procDef = quote do:
proc foo(): void =
echo "bar"
result = newStmtList(
arg, procDef
)
echo result.repr
iterator bar(): int {.foobar.} =
discard