summary refs log tree commit diff stats
path: root/tests/clearmsg/tmacroerrorproc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/clearmsg/tmacroerrorproc.nim')
-rw-r--r--tests/clearmsg/tmacroerrorproc.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/clearmsg/tmacroerrorproc.nim b/tests/clearmsg/tmacroerrorproc.nim
new file mode 100644
index 000000000..9a6ff6a06
--- /dev/null
+++ b/tests/clearmsg/tmacroerrorproc.nim
@@ -0,0 +1,13 @@
+discard """
+  file: "tmacroerrorproc.nim"
+  line: 13
+  errormsg: "Expected a node of kind nnkCharLit, got nnkCommand"
+"""
+# issue #4915
+import macros
+
+macro mixer(n: typed): untyped =
+  expectKind(n, nnkCharLit)
+  
+mixer:
+  echo "owh"
\ No newline at end of file