summary refs log tree commit diff stats
path: root/tests/iter
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2019-05-30 11:18:17 +0200
committernarimiran <narimiran@disroot.org>2019-05-30 11:18:17 +0200
commitcb71564785936e005869b644d98b5470e6d09226 (patch)
tree93d82ce8a7adec5105901779f435c9985714ca9b /tests/iter
parent4606a00d4e9f07c646a5046b2f92027bcd3e6147 (diff)
downloadNim-cb71564785936e005869b644d98b5470e6d09226.tar.gz
close #9827 by adding a test
Diffstat (limited to 'tests/iter')
-rw-r--r--tests/iter/titer14.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/iter/titer14.nim b/tests/iter/titer14.nim
new file mode 100644
index 000000000..7e483bbae
--- /dev/null
+++ b/tests/iter/titer14.nim
@@ -0,0 +1,7 @@
+proc f() =
+  var s: seq[int]
+  iterator a(): int =
+    for x in s: yield x
+
+  iterator b(): int =
+    for x in a(): yield x