* fixes #21439; Add tyOpenArray to genTypeInfo. * Add test.
This commit is contained in:
parent
425225119a
commit
4ae598762e
2 changed files with 15 additions and 1 deletions
14
tests/js/t21439.nim
Normal file
14
tests/js/t21439.nim
Normal file
|
|
@ -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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue