diff --git a/tests/macros/t15751.nim b/tests/macros/t15751.nim new file mode 100644 index 0000000000..fcabb2f9ef --- /dev/null +++ b/tests/macros/t15751.nim @@ -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