summary refs log tree commit diff stats
path: root/tests/macros/t7454.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/macros/t7454.nim')
-rw-r--r--tests/macros/t7454.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/macros/t7454.nim b/tests/macros/t7454.nim
new file mode 100644
index 000000000..e527de0c3
--- /dev/null
+++ b/tests/macros/t7454.nim
@@ -0,0 +1,8 @@
+discard """
+errormsg: "expression has no type:"
+line: 8
+"""
+
+macro p(t: typedesc): typedesc =
+  discard
+var a: p(int)