t8259.nim 156 B

12345678
  1. discard """
  2. errormsg: "invalid type: 'openArray[int]' for result"
  3. line: 6
  4. """
  5. proc foo(a: openArray[int]):auto = a
  6. echo foo(toOpenArray([1, 2], 0, 2))