Run to "write" line
(pdr) print x
[ERROR] <error: element type not found>
program project1; {$Mode objfpc}
type
TRec = array of record
a: byte;
end;
var x : TRec;
begin
SetLength(x,2);
x[0].a := 12;
write(x[0].a);
end.
Same for
(pdr) print x
X = TRec { a: 12, b: <error: type not found> }
program project1; {$Mode objfpc}
type
TRec = record
a: byte;
b: record
c: word;
end;
end;
var x : TRec;
begin
x.a := 12;
x.b.c := 11;
write(x.a);
end.
Run to "write" line
Same for