require errormsg to be specified before file.

This commit is contained in:
Arne Döring 2018-11-29 16:07:51 +01:00 • committed by Araq
commit 1105d03644
264 changed files with 305 additions and 623 deletions

View file

@ -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