aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/unary_plus_on_record.elna
blob: 72898733b3968854fec11aab4ea96b5e8187e361 (plain)
1
2
3
4
5
6
7
8
9
type
  R = record
    x: Int
  end

proc f(r: R): Int
return +r (* @Error Type 'R' cannot be used with unary '\+' *)

end.