Fix codegen for mInSet magic and empty sets (#8140)

Fixes #8041
This commit is contained in:
LemonBoy 2018-06-29 15:10:51 +02:00 • committed by Andreas Rumpf
commit 64c84a7d11
2 changed files with 24 additions and 13 deletions

7
tests/iter/t8041.nim Normal file
View file

@ -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