Inherited in record constructor

Inherited in record constructor

Just noticed that following code compiles successfully, should not it fail with compiler error?

type
TRec = record
F: Integer;
constructor create(AF: integer);
end;

constructor TRec.create(AF: Integer);
begin
inherited;
F := AF;
end;

Comments

Post a Comment