fixes #4551
This commit is contained in:
parent
f1092512e3
commit
440ed8eb68
2 changed files with 16 additions and 0 deletions
13
tests/ccgbugs/tcapture_static.nim
Normal file
13
tests/ccgbugs/tcapture_static.nim
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue