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.
_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to