diff options
author | narimiran <narimiran@disroot.org> | 2019-05-30 11:18:17 +0200 |
---|---|---|
committer | narimiran <narimiran@disroot.org> | 2019-05-30 11:18:17 +0200 |
commit | cb71564785936e005869b644d98b5470e6d09226 (patch) | |
tree | 93d82ce8a7adec5105901779f435c9985714ca9b /tests/iter | |
parent | 4606a00d4e9f07c646a5046b2f92027bcd3e6147 (diff) | |
download | Nim-cb71564785936e005869b644d98b5470e6d09226.tar.gz |
close #9827 by adding a test
Diffstat (limited to 'tests/iter')
-rw-r--r-- | tests/iter/titer14.nim | 7 |
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 |