[fpc-devel] Generics: issue with double inline specialization
Martok
listbox at martoks-place.de
Sat Oct 1 00:14:33 CEST 2016
Hi everyone,
I had already reported the issue as
<http://bugs.freepascal.org/view.php?id=30626>, but as this problem is currently
blocking a clean solution in a project for us, I'm asking for help again here.
The problem appears to be that when a generic uses its type parameter to
inline-specialize another generic (ie. inherit from it), that generic cannot be
specialized anywhere else (ie. return value of that type) or a name collision
occurs. Not really sure why that happens, but for some reason the compiler
doesn't recognize that the two instances don't have the same name by accident
but really are the same type.
Do you have any idea what could be done to work around this?
Thank you in advance,
Martok
More information about the fpc-devel
mailing list