summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorgenotrance <dev@genotrance.com>2018-04-18 14:19:48 -0500
committerAndreas Rumpf <rumpf_a@web.de>2018-04-18 21:19:48 +0200
commitb9cafe5752f0772b6c05b78c45cd72b8c0932de2 (patch)
treecf25da3182cbd5b94714cffc7a7ba5166706ab27 /tests
parent0448d3f6ea3516bee9816320fefc62bc9c7d23fc (diff)
downloadNim-b9cafe5752f0772b6c05b78c45cd72b8c0932de2.tar.gz
test case for #1154 (#7648)
Diffstat (limited to 'tests')
-rw-r--r--tests/errmsgs/t1154.nim11
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..7fcbf8a27
--- /dev/null
+++ b/tests/errmsgs/t1154.nim
@@ -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)