Closure iterators are not supported by VM (#15818)
This commit is contained in:
parent
544cb107c7
commit
5b4c17b5e7
2 changed files with 11 additions and 0 deletions
9
tests/vm/tclosureiterator.nim
Normal file
9
tests/vm/tclosureiterator.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
discard """
|
||||
errormsg: "Closure iterators are not supported by VM!"
|
||||
"""
|
||||
|
||||
iterator iter*(): int {.closure.} =
|
||||
yield 3
|
||||
|
||||
static:
|
||||
var x = iter
|
||||
Loading…
Add table
Add a link
Reference in a new issue