diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-11-02 17:58:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 10:58:14 +0100 |
commit | 5b4c17b5e7166220c7b5c149946579f245f54645 (patch) | |
tree | 2b4e00ce46075dbf5d33d14c2d80d67da3749494 /tests/vm/tclosureiterator.nim | |
parent | 544cb107c75523196ceee9408f9b1d5d89c82e48 (diff) | |
download | Nim-5b4c17b5e7166220c7b5c149946579f245f54645.tar.gz |
Closure iterators are not supported by VM (#15818)
Diffstat (limited to 'tests/vm/tclosureiterator.nim')
-rw-r--r-- | tests/vm/tclosureiterator.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/vm/tclosureiterator.nim b/tests/vm/tclosureiterator.nim new file mode 100644 index 000000000..c909392d5 --- /dev/null +++ b/tests/vm/tclosureiterator.nim @@ -0,0 +1,9 @@ +discard """ + errormsg: "Closure iterators are not supported by VM!" +""" + +iterator iter*(): int {.closure.} = + yield 3 + +static: + var x = iter |