<div dir="ltr"><div><div><div><div>Hello,<br><br></div><br></div><div>Please confirm this bug.<br></div><div><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></div><br>=== CODE  ===<br><br><b>unit</b> generics_bug;<br><br>{$mode delphi}<br><br><b>interface</b><br><br><b>type</b><br><br>  TPair<TKey, TValue> = <b>record</b><br>    Key: TKey;<br>    Value: TValue;    <br>  <b>end</b>;<br><br>  TEnumerator<T> = <b>class</b><br>  <b>end</b>;<br><br>  TGenericClass<T, K> = <b>class</b>(TEnumerator<TPair<T, K>>)<br>  <b>end</b>;                <br>  <br><b>implementation</b><br><br><b>end</b>.<br><br>===<br><br><br></div>This code compiles in Delphi XE 2.<br><br></div>Regards<br></div>