diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2019-02-08 08:59:38 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-02-08 08:59:38 +0100 |
commit | 6b88ce3384c453fa3e872e059f5d9c73f247f42b (patch) | |
tree | 19939cc700aace8fe7458d85d915e5912dac421f /tests/errmsgs | |
parent | c7c495f08a754145541a84e3ba4e56e89125bc20 (diff) | |
download | Nim-6b88ce3384c453fa3e872e059f5d9c73f247f42b.tar.gz |
Stop useless suggestion of unsafeAddr (#10598)
Fixes #10594
Diffstat (limited to 'tests/errmsgs')
-rw-r--r-- | tests/errmsgs/t10594.nim | 7 |
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) |