aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/compare_unrelated_records.elna
blob: 71eaedad6f42253cfb70dee1c0e7bbd58d918ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
type
  A = record
    x: Int
  end
  B = record
    y: Int;
    z: Int
  end

var
  a: A
  b: B
  ok: Bool

begin
  ok := b = a (* @Error Invalid operands of type 'B' and 'A' for operator = *)
end.