mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
16 lines
223 B
Nim
16 lines
223 B
Nim
proc f() =
|
|
var s: seq[int]
|
|
iterator a(): int =
|
|
for x in s: yield x
|
|
|
|
iterator b(): int =
|
|
for x in a(): yield x
|
|
|
|
proc y(n: ref int) = discard
|
|
|
|
proc w(n: ref int) =
|
|
iterator a(): int = y(n)
|
|
let x = a
|
|
|
|
w(nil)
|