This commit is contained in:
andri lim
2016-10-27 20:01:23 +07:00
parent bd560d6a4e
commit 74c6500a30

View File

@@ -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"