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

proc f()
var
  b: ^B
  d: ^const D
begin
  b := d (* @Error Expected type '\^B', but got '\^const D' *)
return

end.