require errormsg to be specified before file.
This commit is contained in:
parent
ca394ebd95
commit
1105d03644
264 changed files with 305 additions and 623 deletions
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
errormsg: "recursive dependency: \'myrec\'"
|
||||
file: "treciter.nim"
|
||||
line: 9
|
||||
errormsg: "recursive dependency: \'myrec\'"
|
||||
"""
|
||||
# Test that an error message occurs for a recursive iterator
|
||||
|
||||
|
|
@ -10,5 +10,3 @@ iterator myrec(n: int): int =
|
|||
yield x
|
||||
|
||||
for x in myrec(10): echo x
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue