diff options
Diffstat (limited to 'tests/errmsgs/t1154.nim')
-rw-r--r-- | tests/errmsgs/t1154.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/errmsgs/t1154.nim b/tests/errmsgs/t1154.nim new file mode 100644 index 000000000..fee9d0ad6 --- /dev/null +++ b/tests/errmsgs/t1154.nim @@ -0,0 +1,11 @@ +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) |