mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
add test
This commit is contained in:
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"
|
||||
Reference in New Issue
Block a user