> On Oct 29, 2020, at 12:27 PM, Ryan Joseph <generic...@gmail.com> 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 - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal