pascalabcnet/TestSuite/records6.pas

11 lines
123 B
ObjectPascal
Raw Permalink Normal View History

2017-11-26 16:36:02 +03:00
type
r1=record
a: integer;
class Empty:r1;
end;
begin
var r: r1;
r.a := 2;
assert(r1.Empty.a = 0);
end.