parent
6dc6ea4146
commit
3588240226
2 changed files with 9 additions and 0 deletions
7
tests/openarray/t8259.nim
Normal file
7
tests/openarray/t8259.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
line: 6
|
||||
errormsg: "invalid type: 'openarray[int]' for result"
|
||||
"""
|
||||
|
||||
proc foo(a: openArray[int]):auto = a
|
||||
echo foo(toOpenArray([1, 2], 0, 2))
|
||||
Loading…
Add table
Add a link
Reference in a new issue