* follow #15818 and close #7109 * Update compiler/jsgen.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
This commit is contained in:
parent
c243639979
commit
fde17b159f
2 changed files with 13 additions and 2 deletions
8
tests/js/t7109.nim
Normal file
8
tests/js/t7109.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
discard """
|
||||
errormsg: "Closure iterators are not supported by JS backend!"
|
||||
"""
|
||||
|
||||
iterator iter*(): int {.closure.} =
|
||||
yield 3
|
||||
|
||||
var x = iter
|
||||
Loading…
Add table
Add a link
Reference in a new issue