diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-06-29 15:10:51 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-06-29 15:10:51 +0200 |
commit | 64c84a7d11697a03a7b2e54a5ef4bffa099535fe (patch) | |
tree | 54a269e0c733203105eb979519e354e9f6310aa1 /tests/iter | |
parent | 7674df0dffc8746a9377ed9680b179118f14a0cd (diff) | |
download | Nim-64c84a7d11697a03a7b2e54a5ef4bffa099535fe.tar.gz |
Fix codegen for mInSet magic and empty sets (#8140)
Fixes #8041
Diffstat (limited to 'tests/iter')
-rw-r--r-- | tests/iter/t8041.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/iter/t8041.nim b/tests/iter/t8041.nim new file mode 100644 index 000000000..c87134cfc --- /dev/null +++ b/tests/iter/t8041.nim @@ -0,0 +1,7 @@ +iterator xy[T](a: T, b: set[T]): T = + if a in b: + yield a + +for a in xy(1'i8, {}): + for b in xy(a, {}): + echo a |