version0.7.10

This commit is contained in:
Andreas Rumpf 2009-06-08 08:13:09 +02:00
commit 36818817bd
14 changed files with 1011 additions and 0 deletions

7
tests/titer3.nim Normal file
View file

@ -0,0 +1,7 @@
# yield inside an iterator, but not in a loop:
iterator iter1(a: openArray[int]): int =
yield a[0] #ERROR_MSG 'yield' only allowed in a loop of an iterator
var x = [[1, 2, 3], [4, 5, 6]]
for y in iter1(x[0]): write(stdout, $y)