Stop useless suggestion of unsafeAddr (#10598)

Fixes #10594
This commit is contained in:
LemonBoy 2019-02-08 08:59:38 +01:00 • committed by Andreas Rumpf
commit 6b88ce3384
3 changed files with 14 additions and 2 deletions

7
tests/errmsgs/t10594.nim Normal file
View file

@ -0,0 +1,7 @@
discard """
errormsg: "expression has no address"
line: 7
"""
template foo(v: varargs[int]) = unsafeAddr v
foo(1, 2)