RAD Studio Athens

E2263

Go Up to Error and Warning Messages (Delphi)

An attempt has been made to use a dynamic or message method as a property accessor of a property which has an implements clause.


program Produce;
type
  I0 = interface
  end;

  T0 = class(TInterfacedObject, I0)
    function getterย : I0; dynamic;
    property p0ย : I0 read getter implements I0;
  end;

function T0.getterย : I0;
begin
end;

end.


As shown in the example here, it is an error to use the dynamic modifier on a getter for a property which has an implements clause.


program Produce;
type
  I0 = interface
  end;

  T0 = class(TInterfacedObject, I0)
    function getterย : I0;
    property p0ย : I0 read getter implements I0;
  end;

function T0.getterย : I0;
begin
end;

end.


To remove this error from your programs, remove the offending dynamic or method declaration.