proc foo: seq[proc: int {.closure.}] =
for i in 0..1:
closureScope:
result.add proc: int = 1
for f in foo():
echo f()
Run
`(14, 7) Error: 'result' is of type <seq[proc (): int{.closure.}]> which cannot
be captured as it would violate memory safety, declared here: abc.nim(11, 1)`
How am I supposed to append it to the result variable, then?
