[fpc-pascal] Correct way to write generic type aliases

Sven Barth pascaldragon at googlemail.com
Mon Aug 29 08:06:27 CEST 2016


Am 29.08.2016 05:36 schrieb "leledumbo" <leledumbo_cool at yahoo.co.id>:
>
> > Type aliases for generics are not supported.
>
> OK, but Delphi seems to support the last 3 variant which creates a generic
> subclass of a specialized generic type:
>
http://stackoverflow.com/questions/10060009/is-it-possible-to-create-a-type-alias-to-a-generic-class-in-delphi
> At least, it shouldn't make the compiler raise EAccessViolation, right? ;)

Remind me not to jump over code examples... Yes, the last three should
work. Would you please report a bug?

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160829/072be8df/attachment.html>


More information about the fpc-pascal mailing list