summary refs log blame commit diff stats
path: root/tests/iter/t8041.nim
blob: c87134cfcab6ffa6d930f00fa3472da8ecacb7c8 (plain) (tree)
1
2
3
4
5
6
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