[fpc-pascal] Explicit Interface implementation and inheritance

Jean SUZINEAU jean.suzineau at wanadoo.fr
Sun Aug 15 08:47:10 CEST 2021


Ooops, may be I hit reply too fast.

It looks like when you write " TObjB = class(TObjA, IBBB)" you just 
implement IAAA twice.
If you comment out IBBB
   TImpB = class(TImpA{, IBBB})
   public
     procedure CallOfB;
     //procedure IBBB.MethodB = CallOfB;
   end;

then the "No matching implementation" error disappears, the inherited 
implementation is well taken in account.



More information about the fpc-pascal mailing list