summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-03-06 16:25:20 +0800
committerGitHub <noreply@github.com>2024-03-06 16:25:20 +0800
commita2584c779b0debb54cdd0111f9ad845fbfe33e97 (patch)
treeaf1794c7a0c468a5b25c1b6d3715118817e381a8
parent7cd3d606838848261b7be6aa4675a761c7946129 (diff)
downloadNim-a2584c779b0debb54cdd0111f9ad845fbfe33e97.tar.gz
closes #15751; adds a test case (#23372)
closes #15751
-rw-r--r--tests/macros/t15751.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/macros/t15751.nim b/tests/macros/t15751.nim
new file mode 100644
index 000000000..fcabb2f9e
--- /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