version 0.8.2
This commit is contained in:
parent
581572b28c
commit
053309e60a
125 changed files with 6564 additions and 1308 deletions
7
tests/treciter.nim
Executable file
7
tests/treciter.nim
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
# Test that an error message occurs for a recursive iterator
|
||||
|
||||
iterator myrec(n: int): int =
|
||||
for x in myrec(n-1): #ERROR_MSG recursive dependency: 'myrec'
|
||||
yield x
|
||||
|
||||
for x in myrec(10): echo x
|
||||
Loading…
Add table
Add a link
Reference in a new issue