rtl-objpas / rtti.pp => RTttiMethod.toString : inconsistent appearance of parameter name
<h3><details><summary>Original Reporter info from Mantis: <small>Martin @martin_frb</small></summary><small> - **Reporter name:** Martin Friebe </small></details></h3> ## Description: Fpc 3.2.2 // Fpc trunk from about March 2021 The below program prints const a: Byte<br/> b: Word<br/> c: Word<br/> var a: TEnum1<br/> array of Int64 The parameter name is always included, except for the open array param. I would expect it to be always included ## Steps to reproduce: ``` pascal program Project1; {$mode objfpc}{$H+} uses Classes, TypInfo, Rtti; type TEnum1 = (a,b,c); t1 = function (const a: byte; b,c: word): boolean; t2 = procedure (var a: TEnum1; b: array of Int64) of object; var context: TRttiContext; params: specialize TArray<TRttiParameter>; t: TRttiType; i: Integer; ``` ``` pascal begin context := TRttiContext.Create; t := context.GetType(PTypeInfo(TypeInfo(t1))); params := TRttiInvokableType(t).GetParameters; for i := 0 to Length(params) - 1 do writeln(params[i].tostring); t := context.GetType(PTypeInfo(TypeInfo(t2))); params := TRttiInvokableType(t).GetParameters; for i := 0 to Length(params) - 1 do writeln(params[i].tostring); context.Free; ReadLn; end. ``` ## Mantis conversion info: - **Mantis ID:** 38934 - **OS:** win 10 - **OS Build:** 10 - **Platform:** 64bit Intel - **Version:** 3.2.2
issue