summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-11-03 01:27:39 +0800
committerGitHub <noreply@github.com>2020-11-02 18:27:39 +0100
commitfde17b159fdc96eda5609fd98e1fe3c7a34ef40b (patch)
tree8b3ab81e2fb95ddc2a38045690a594884c121056 /tests/js
parentc243639979b795d28a69f19ad988726225e22fcd (diff)
downloadNim-fde17b159fdc96eda5609fd98e1fe3c7a34ef40b.tar.gz
follow #15818 and close #7109 (#15823)
* 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>
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/t7109.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/js/t7109.nim b/tests/js/t7109.nim
new file mode 100644
index 000000000..0d071dbbf
--- /dev/null
+++ b/tests/js/t7109.nim
@@ -0,0 +1,8 @@
+discard """
+  errormsg: "Closure iterators are not supported by JS backend!"
+"""
+
+iterator iter*(): int {.closure.} =
+  yield 3
+
+var x = iter