summary refs log tree commit diff stats
path: root/tests/errmsgs/tnnodeadd.nim
blob: 61921883ec9b948897419bcdbfa38a054fab27aa (plain) (blame)
1
2
3
4
5
6
7
8
discard """
  errormsg: "cannot add to node kind: nnkInt8Lit"
  line: 7
"""
import macros
macro t(x: untyped): untyped =
  x.add(newEmptyNode())
t(38'i8)