> On Oct 29, 2020, at 12:27 PM, Ryan Joseph <[email protected]> wrote:
>
> Is it possible that the TypeInfo intrinsic could work with generic template
> types or is this a bug? I get "Illegal qualifier" in the procedure below.
>
> generic procedure DoThis<T>(a: array of T);
> begin
> writeln(TypeInfo(T)^.name);
> end;
Oops I think you're right, I was just using TypeInfo wrong (should cast to
PTypeInfo). Please disregard.
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal