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

var
  a: A
  b: B
  ok: Bool

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