summary refs log tree commit diff stats
path: root/tests/js/t21439.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/t21439.nim')
-rw-r--r--tests/js/t21439.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/js/t21439.nim b/tests/js/t21439.nim
new file mode 100644
index 000000000..972356cd0
--- /dev/null
+++ b/tests/js/t21439.nim
@@ -0,0 +1,14 @@
+discard """
+  action: "compile"
+"""
+
+proc test(a: openArray[string]): proc =
+  result = proc =
+    for i in a:
+      discard i
+
+
+const a = ["t1", "t2"]
+
+discard test(a)
+