aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/unary_minus_on_record.elna
blob: d86995ba8036fa299200afba08c5c4d622bad7e1 (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.