Delphi Error – E2263 Implements getter cannot be dynamic or message method

Delphi Compiler Error

E2263 Implements getter cannot be dynamic or message method

Reason for the Error & Solution

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.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Delphi Compiler Error E2313 Attribute – Known attribute cannot specify properties Reason for the Error & Solution No further information...
Delphi Compiler Error E2379 Virtual methods not allowed in record types Reason for the Error & Solution No further information...
Rodrigo , one of the long time Delphi Developer has been working on one of his personal project “Delphi IDE...