parent
0448d3f6ea
commit
b9cafe5752
1 changed files with 11 additions and 0 deletions
11
tests/errmsgs/t1154.nim
Normal file
11
tests/errmsgs/t1154.nim
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue