summary refs log tree commit diff stats
path: root/tests/js/temptyseq.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/temptyseq.nim')
-rw-r--r--tests/js/temptyseq.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/js/temptyseq.nim b/tests/js/temptyseq.nim
new file mode 100644
index 000000000..6489cf817
--- /dev/null
+++ b/tests/js/temptyseq.nim
@@ -0,0 +1,8 @@
+# #12671
+
+proc foo =
+  var x: seq[int]
+  doAssertRaises(IndexDefect):
+    inc x[0]
+
+foo()