<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hello again,<br><br>
<p class="MsoNormal"><span style lang="EN-US">Can I use a
defined generic </span><span style lang="EN-US"><span style lang="EN-US">type </span>parameter inside a constraint of the same generic declaration on FPC trunk code? Something
like:</span></p>
<p class="MsoNormal"><span style lang="EN-US"> </span></p><p class="MsoNormal"><span style lang="EN-US">{$mode Delphi}</span></p><p class="MsoNormal"><span style lang="EN-US"><br></span></p>type<br> TFoo<T> = class<br>
end;<br><br> TGeneric<T, U: TFoo<T>> = class<br> end;<br><br><span style lang="EN-US"></span> <span style="font-size:11pt;font-family:"Calibri","sans-serif"" lang="EN-US">This compiles in
Delphi XE or later but in FPC it gives the error "Identifier not found 'T'" at the T parameter in the constraint.</span><br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
Thanks in advance.<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">--Constantine<br></div></div>