[fpc-pascal] Interface Inheritance Bug

African Wild Dog paintedlycaon at gmail.com
Sun Mar 19 17:55:09 CET 2017


2017-03-19 5:25 GMT-03:00 Sven Barth via fpc-pascal <
fpc-pascal at lists.freepascal.org>:

> I think this will happen with non-generic interfaces as well. So please
> test with those and if possible also with 3.1.1 and report a bug if
> necessary (preferable with a non-generic example, makes things easier to
> debug ;) ).
>
>
With non-generic types there is a workaround: cast to parent interface:

...

ParentImplementorInstance := TImplementor.Create as IParentInterface;

..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170319/36e3c2fe/attachment.html>


More information about the fpc-pascal mailing list