mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 05:20:31 +00:00
closes #3744
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user