t1154.nim 196 B

123456789101112
  1. discard """
  2. errormsg: "invalid type: 'untyped' in this context: 'proc (a: varargs[untyped])' for proc"
  3. line: 8
  4. """
  5. import typetraits
  6. proc foo(a:varargs[untyped]) =
  7. echo a[0].type.name
  8. foo(1)