<html><body><div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Feb 3, 2026 at 10:42:05 PM, Martin Frb via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" type="cite">
<div><a href="https://gitlab.com/freepascal.org/fpc/source/-/issues/41604">https://gitlab.com/freepascal.org/fpc/source/-/issues/41604</a></div>
</blockquote>
</div>
<br>
<div dir="ltr"><pre class="code highlight" lang="plaintext">program Project1;
{$Mode objfpc}
{$Interfaces CORBA}
type
IFoo = interface end;
TBar = class(TObject, IFoo) end;
generic MyGen<A: IFoo> = class end;
TSome = specialize MyGen<TBar>;
begin
end.
</pre><div dir="ltr">ok so I can see the whole thing now and this should compile. TBar implements IFoo and "A" must conform to IFoo so TBar is compatible with "A".</div></div></body></html>