test case for #1154 (#7648)

This commit is contained in:
genotrance 2018-04-18 14:19:48 -05:00 • committed by Andreas Rumpf
commit b9cafe5752

11
tests/errmsgs/t1154.nim Normal file
View file

@ -0,0 +1,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)