[fpc-pascal] TypeInfo on generic templates

Ryan Joseph genericptr at gmail.com
Thu Oct 29 19:27:08 CET 2020


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;


Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list