summary refs log blame commit diff stats
path: root/tests/vm/tclosureiterator.nim
blob: c909392d55cd9653018f5cbc1effcb86cf9ff4a3 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                        
discard """
  errormsg: "Closure iterators are not supported by VM!"
"""

iterator iter*(): int {.closure.} =
  yield 3

static:
  var x = iter