aboutsummaryrefslogtreecommitdiff
path: root/testsuite/compilable/assign_record_to_base.elna
blob: 7601d0601cf67c9869d03dc1fcd9f0f56129054f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
type
  B = record
    x: Int
  end
  R = record(B)
    y: Int
  end

var
  x: ^B := nil
  y: ^R := nil

program()
begin
  x := y;
end.