This commit is contained in:
Andreas Rumpf 2017-09-01 16:22:23 +02:00
commit 27e89eef6b

View file

@ -18,7 +18,8 @@ discard """
0 0
0 0
1 1
2''' 2
70'''
""" """
when true: when true:
@ -71,3 +72,10 @@ for x in infinite.take(3):
let inf = infinite let inf = infinite
for x in inf.take(3): for x in inf.take(3):
echo x echo x
# bug #3583
proc foo(f: (iterator(): int)) =
for i in f(): echo i
let fIt = iterator(): int = yield 70
foo fIt