summary refs log blame commit diff stats
path: root/tests/clearmsg/tmacroerrorproc.nim
blob: cd9b15e25b8dc1128a1dc514cc85e6d08b284906 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                

                              
      
            
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[0], nnkCharLit)

mixer:
  echo "owh"