diff options
author | Araq <rumpf_a@web.de> | 2019-01-13 16:05:42 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-01-13 16:05:42 +0100 |
commit | 2ccc9db59d849f3dc5613236eea4a47c9ab19be1 (patch) | |
tree | 147b99b4896fb6e4e607ad86dd465f1139bb97f5 | |
parent | aa7ad8897895acaee9e2999652050d5bc52921a7 (diff) | |
download | Nim-2ccc9db59d849f3dc5613236eea4a47c9ab19be1.tar.gz |
closes #3744
-rw-r--r-- | tests/macros/tquotedo.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/macros/tquotedo.nim b/tests/macros/tquotedo.nim index cd1f69116..0aae87bf0 100644 --- a/tests/macros/tquotedo.nim +++ b/tests/macros/tquotedo.nim @@ -3,6 +3,7 @@ output: ''' 123 Hallo Welt Hallo Welt +1 ''' """ @@ -23,3 +24,13 @@ macro foobar(arg: untyped): untyped = foobar: echo "Hallo Welt" + +# bug #3744 +import macros +macro t(): untyped = + return quote do: + proc tp(): int = + result = 1 +t() + +echo tp() |