add test
This commit is contained in:
parent
bd560d6a4e
commit
74c6500a30
1 changed files with 13 additions and 0 deletions
13
tests/clearmsg/tmacroerrorproc.nim
Normal file
13
tests/clearmsg/tmacroerrorproc.nim
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue