This reverts commit a5f02cac85.
This commit is contained in:
Andreas Rumpf 2020-03-23 09:57:17 +01:00 • committed by GitHub
commit 7ee08b8cf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 31 deletions

View file

@ -213,24 +213,3 @@ block t2023_objiter:
var o = init()
echo(o.iter())
block:
# bug #13417
var effectCounterP1 = 0
proc p1(): seq[int] =
inc effectCounterP1
@[1,2]
iterator ip1(v: openArray[int]): auto =
for x in v:
yield x
var effectCounterLoop = 0
for x in ip1(p1()):
inc effectCounterLoop
doAssert effectCounterP1 == 1
doAssert effectCounterLoop == 2