aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/unary_negation_on_record.elna
blob: 750f82891bbe28f793e689b2cd374c078e6116b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
module

type
  R = record
    x: Int
  end

proc f(r: R) -> Int
return ~r (* @Error Type 'R' cannot be used with unary '~' *)

end.