[fpc-devel] generic and type compatibility / interface vs class ...
Michael Van Canneyt
michael at freepascal.org
Tue Feb 3 15:16:28 CET 2026
On Tue, 3 Feb 2026, Martin Frb via fpc-devel wrote:
> ok, so if I have
> procedure bar(f: IntfFoo);
>
> I can do
> bar(SomeClassInstanceThatImplementsFoo);
>
> makes sense, the interface can be gotten at the time of calling.
>
> Now if I have
>
> generic MyGen< P: IntfFoo >
>
> then I can also do
> specialize MyGen<SomeClassInstanceThatImplementsFoo>
>
> is that indented?
I don't think so. Sounds like a bug ?
Michael.
More information about the fpc-devel
mailing list