This commit is contained in:
Andreas Rumpf 2016-08-09 14:16:13 +02:00
commit 440ed8eb68
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,13 @@
discard """
output: '''hi'''
"""
# bug #4551
proc foo() =
let arr = ["hi"]
for i, v in arr:
let bar = proc =
echo v
bar()
foo()