summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorandri lim <jangko128@gmail.com>2016-10-27 20:01:23 +0700
committerandri lim <jangko128@gmail.com>2016-10-27 20:01:23 +0700
commit74c6500a30b99fde9af5d17a87723dcf18309964 (patch)
treefaddd5fb0ea8009db010f75c8bdff642ab5e4c2e
parentbd560d6a4e237268494ff45fc0a4fdeadf39b696 (diff)
downloadNim-74c6500a30b99fde9af5d17a87723dcf18309964.tar.gz
add test
-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