[fpc-pascal] Interface type error
genericptr at gmail.com
Sun Feb 2 12:49:59 CET 2020
> On Feb 2, 2020, at 3:23 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> As I had explained in the other thread some months ago interfaces in Object Pascal mean literally that the type can be cast to the specified interfaces. Parent interfaces are *not* part of this. If you want this you need to first cast the class to IClassName2, then the "interface inheritance" mechanism can take over.
Hmm, isn't that inconsistent given how classes work? if TClassName implements IClassName2 then doesn't it also implement IClassName1 by definition?
More information about the fpc-pascal