This commit is contained in:
andri lim 2016-10-27 20:01:23 +07:00
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"