blob: ceb24548c1a5b9bac7be5a62b748ddc1718de207 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
discard """
output: '''1'''
"""
# bug #3837
iterator t1(): int {.closure.} =
yield 1
iterator t2(): int {.closure.} =
for i in t1():
yield i
for i in t2():
echo $i
|