From a2584c779b0debb54cdd0111f9ad845fbfe33e97 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 6 Mar 2024 16:25:20 +0800 Subject: closes #15751; adds a test case (#23372) closes #15751 --- tests/macros/t15751.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/macros/t15751.nim (limited to 'tests') 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 -- cgit 1.4.1-2-gfad0