twrongiter.nim 178 B

1234567891011121314
  1. discard """
  2. errormsg: "type mismatch"
  3. line: 12
  4. """
  5. proc first(it: iterator(): int): seq[int] =
  6. return @[]
  7. iterator primes(): int =
  8. yield 1
  9. for i in first(primes):
  10. break