From 74c6500a30b99fde9af5d17a87723dcf18309964 Mon Sep 17 00:00:00 2001 From: andri lim Date: Thu, 27 Oct 2016 20:01:23 +0700 Subject: [PATCH] add test --- tests/clearmsg/tmacroerrorproc.nim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/clearmsg/tmacroerrorproc.nim diff --git a/tests/clearmsg/tmacroerrorproc.nim b/tests/clearmsg/tmacroerrorproc.nim new file mode 100644 index 0000000000..9a6ff6a067 --- /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