summary refs log tree commit diff stats
path: root/tests/errmsgs
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2019-02-08 08:59:38 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-02-08 08:59:38 +0100
commit6b88ce3384c453fa3e872e059f5d9c73f247f42b (patch)
tree19939cc700aace8fe7458d85d915e5912dac421f /tests/errmsgs
parentc7c495f08a754145541a84e3ba4e56e89125bc20 (diff)
downloadNim-6b88ce3384c453fa3e872e059f5d9c73f247f42b.tar.gz
Stop useless suggestion of unsafeAddr (#10598)
Fixes #10594
Diffstat (limited to 'tests/errmsgs')
-rw-r--r--tests/errmsgs/t10594.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/errmsgs/t10594.nim b/tests/errmsgs/t10594.nim
new file mode 100644
index 000000000..c9506c542
--- /dev/null
+++ b/tests/errmsgs/t10594.nim
@@ -0,0 +1,7 @@
+discard """
+  errormsg: "expression has no address"
+  line: 7
+"""
+
+template foo(v: varargs[int]) = unsafeAddr v 
+foo(1, 2)