<p>Am 18.03.2017 22:41 schrieb "Sven Barth" <<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>>:<br>
><br>
> Am 18.03.2017 19:55 schrieb "African Wild Dog" <<a href="mailto:paintedlycaon@gmail.com">paintedlycaon@gmail.com</a>>:<br>
> ><br>
> > Hello,<br>
> ><br>
> ><br>
> > Please confirm this bug.<br>
> ><br>
> > The unit code bellow won't compile (fpc 3.0.2 - debian jessie amd64):<br>
> ><br>
> > "generics_bug.pas(17,48) Fatal: Syntax error, "," expected but "<" found"<br>
> ><br>
> > === CODEÂ ===<br>
> ><br>
> > unit generics_bug;<br>
> ><br>
> > {$mode delphi}<br>
> ><br>
> > interface<br>
> ><br>
> > type<br>
> ><br>
> > Â TPair<TKey, TValue> = record<br>
> > Â Â Â Key: TKey;<br>
> > Â Â Â Value: TValue;Â Â Â <br>
> > Â end;<br>
> ><br>
> > Â TEnumerator<T> = class<br>
> > Â end;<br>
> ><br>
> > Â TGenericClass<T, K> = class(TEnumerator<TPair<T, K>>)<br>
> > Â end;Â Â Â Â Â Â Â Â Â Â Â Â <br>
> > Â <br>
> > implementation<br>
> ><br>
> > end.<br>
> ><br>
> > ===<br>
><br>
> Nested specializations are currently not supported though they *might* work with 3.1.1.</p>
<p>Note: "they" in the sense of "this specific case".</p>
<p>Regards,<br>
Sven</p>