summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-03-23 09:57:17 +0100
committerGitHub <noreply@github.com>2020-03-23 09:57:17 +0100
commit7ee08b8cf6e98312986c821119e4c779505ed6aa (patch)
tree381ca0078e955bc8bc34701378428c0af5f719ab /tests
parent0ac9c7bb642aefc18a9ca1a7b58f22aea6cf61ce (diff)
downloadNim-7ee08b8cf6e98312986c821119e4c779505ed6aa.tar.gz
Revert "fix #13417 (#13712)" (#13728)
This reverts commit a5f02cac85281fc2804e910f330f0c11d3c4f77b.
Diffstat (limited to 'tests')
-rw-r--r--tests/iter/titer_issues.nim21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/iter/titer_issues.nim b/tests/iter/titer_issues.nim
index b8a117e59..a7830dfab 100644
--- a/tests/iter/titer_issues.nim
+++ b/tests/iter/titer_issues.nim
@@ -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