summary refs log blame commit diff stats
path: root/tests/errmsgs/t1154.nim
blob: fee9d0ad6366050add0c8e6a2fdd467a514a6e6c (plain) (tree)
1
2
3
4
5
6
7
8
           
                                                                                          




                 
                              


                     
discard """
errormsg: "invalid type: 'untyped' in this context: 'proc (a: varargs[untyped])' for proc"
line: 8
"""

import typetraits

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

foo(1)