summary refs log blame commit diff stats
path: root/tests/openarray/t8259.nim
blob: 283c6cd02d9ded9a57d5615aa3100364736959a9 (plain) (tree)
1
2
3
4
5
6
7
           
                                                       
         



                                    
discard """
  errormsg: "invalid type: 'openArray[int]' for result"
  line: 6
"""

proc foo(a: openArray[int]):auto = a
echo foo(toOpenArray([1, 2], 0, 2))