mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-03 18:34:43 +00:00
closes #15751
(cherry picked from commit a2584c779b)
This commit is contained in:
11
tests/macros/t15751.nim
Normal file
11
tests/macros/t15751.nim
Normal file
@@ -0,0 +1,11 @@
|
||||
discard """
|
||||
cmd: "nim c --hints:off $file"
|
||||
nimout: "out"
|
||||
"""
|
||||
|
||||
# bug #15751
|
||||
macro print(n: untyped): untyped =
|
||||
echo n.repr
|
||||
|
||||
print:
|
||||
out
|
||||
Reference in New Issue
Block a user