mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
fixes #4299 fixes #12492 fixes #10849 It binds `function` with `env`: `function.bind(:env)` to ease codegen for now
12 lines
146 B
Nim
12 lines
146 B
Nim
proc test(a: openArray[string]): proc =
|
|
let a = @a
|
|
result = proc =
|
|
for i in a:
|
|
discard i
|
|
|
|
|
|
const a = ["t1", "t2"]
|
|
|
|
discard test(a)
|
|
|