<div dir="ltr"><div><div>Hello,</div><div><br></div><div>I need to restrict a generic type to accept specialization only of enum types. In Delphi, I can do that using "T: record", but, when I try to use it in FPC (even using mode delphi), I got:</div><div><br></div><div>project1.lpr(16,42) Error: Record type expected</div><div><br></div><div>Small project to reproduce the error in attachment.</div><div><br></div><div>Is this a normal behavior of the compiler, or is my code a erroneous approach?</div><div><br></div><div>Thank you!</div></div><div><br></div>-- <br><div>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div>