summary refs log tree commit diff stats
path: root/tests/errmsgs/t12844.nim
blob: a274b72b4b93cd1840a36ca18b2c353bc4b9313b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
discard """
cmd: "nim check $file"
errormsg: "invalid type: 'template (args: varargs[string])' for var. Did you mean to call the template with '()'?"
nimout: '''
t12844.nim(11, 7) Error: invalid type: 'template (args: varargs[string])' for const. Did you mean to call the template with '()'?
t12844.nim(12, 5) Error: invalid type: 'template (args: varargs[string])' for var. Did you mean to call the template with '()'?'''
"""

template z*(args: varargs[string, `$`]) =
  discard
const x = z
var y = z