summary refs log tree commit diff stats
path: root/tests/views/tmust_borrow_from_first_parameter.nim
blob: b2decfb38dd91793b198ade6a2a6ec5aec73bfc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
discard """
  errormsg: "'result' must borrow from the first parameter"
  line: 9
"""

{.experimental: "views".}

proc p(a, b: openArray[char]): openArray[char] =
  result = b