tclosureiterator.nim 144 B

12345678910
  1. discard """
  2. errormsg: "Closure iterators are not supported by VM!"
  3. """
  4. iterator iter*(): int {.closure.} =
  5. yield 3
  6. static:
  7. var x = iter