summary refs log tree commit diff stats
path: root/tests/errmsgs/t1154.nim
blob: 7fcbf8a277c8d4b4f10f5d45ec723ee4bb20d980 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
discard """
errormsg: "invalid type: 'expr' in this context: 'proc (a: varargs[expr])' for proc"
line: 8
"""

import typetraits

proc foo(a:varargs[expr]) =
  echo a[0].type.name

foo(1)