parent
25ceacbe4f
commit
8480bef1c4
3 changed files with 13 additions and 0 deletions
4
tests/arc/bmodule.nim
Normal file
4
tests/arc/bmodule.nim
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
import cmodule
|
||||||
|
|
||||||
|
for i in @[1, 2, 3].cycle():
|
||||||
|
echo i
|
||||||
4
tests/arc/cmodule.nim
Normal file
4
tests/arc/cmodule.nim
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
iterator cycle*[T](s: openArray[T]): T =
|
||||||
|
let s = @s
|
||||||
|
for x in s:
|
||||||
|
yield x
|
||||||
5
tests/arc/t14864.nim
Normal file
5
tests/arc/t14864.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
discard """
|
||||||
|
cmd: "nim c --gc:arc $file"
|
||||||
|
"""
|
||||||
|
|
||||||
|
import bmodule
|
||||||
Loading…
Add table
Add a link
Reference in a new issue