Allow taking address of skForVar variables (#8632)

Fixes #8630
This commit is contained in:
LemonBoy 2018-08-14 21:28:14 +02:00 • committed by Andreas Rumpf
commit 531c66d1ec
2 changed files with 14 additions and 1 deletions

13
tests/compiles/t8630.nim Normal file
View file

@ -0,0 +1,13 @@
discard """
output: '''
foo
bar
'''
"""
proc test(strings: seq[string]) =
for s in strings:
var p3 = unsafeAddr(s)
echo p3[]
test(@["foo", "bar"])