[fpc-devel] Question on interface inheritance...

Martin Frb lazarus at mfriebe.de
Sun Feb 1 15:51:24 CET 2026


On 01/02/2026 15:44, Mattias Gaertner via fpc-devel wrote:
>
>
> On 2/1/26 15:29, Martin Frb via fpc-devel wrote:
>> [...]
>>    TIntfBarBase = interface
>>      function GetFoo: TIntfFooBase;
>>    end;
>>    TIntfBar = interface(TIntfBarBase)
>>      function GetFoo: TIntfFoo; reintroduce;
>
> reintroduce is not allowed in Delphi and should not in fpc neither.

It compiles without reintroduce too (just has a warning).

Or do you mean, the act of reintroduction, rather than the keyword?

----
What surprised me more was that virtual/override compiled => but it 
seems its just ignored, as it gives a warning as if it wasn't there.


More information about the fpc-devel mailing list