summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-04-28 16:25:31 +0800
committerGitHub <noreply@github.com>2023-04-28 10:25:31 +0200
commit560fa9a1fe3c098e00ca6486b425951a3a8cd568 (patch)
treed77af3ac8bb32686a98484bfb5ba184f5e7c647f /tests
parent220b45048983998675df761d4f33cd31128f10d5 (diff)
downloadNim-560fa9a1fe3c098e00ca6486b425951a3a8cd568.tar.gz
handle quoted routine symbols and non symbols expressions as before (#21740)
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/tmacros.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/stdlib/tmacros.nim b/tests/stdlib/tmacros.nim
index 7ccb7e7c7..974594dee 100644
--- a/tests/stdlib/tmacros.nim
+++ b/tests/stdlib/tmacros.nim
@@ -323,3 +323,14 @@ block:
       discard m
 
   hello(12)
+
+block:
+  proc hello(x: int, y: typedesc) =
+    discard
+
+  macro main =
+    let x = 12
+    result = quote do:
+      `hello`(12, type(x))
+
+  main()