summary refs log tree commit diff stats
path: root/tests/js/t12672.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/t12672.nim')
-rw-r--r--tests/js/t12672.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/js/t12672.nim b/tests/js/t12672.nim
new file mode 100644
index 000000000..a658fbcbe
--- /dev/null
+++ b/tests/js/t12672.nim
@@ -0,0 +1,12 @@
+discard """
+  output: ""
+"""
+
+proc foo =
+  var x: seq[seq[int]]
+  for row in x.mitems:
+    let i = 1
+    echo row
+    inc row[i-1]
+
+foo()