Compile Project, Target: AdvRec.exe: Exit code 1, Errors: 1, Hints: 1AdvRec.lpr(34,14) Error: Incompatible type for arg no. 1: Got "<procedure variable type of procedure;Register>", expected "PROGRAMNAME.<procedure variable type of procedure;Register>"AdvRec.lpr(26,13) Hint: Found declaration: _Test(const T_ProcVar);
AdvRec.lpr(34,14) Error: Incompatible type for arg no. 1: Got "<procedure variable type of procedure;Register>", expected "<procedure variable type of procedure of object;Register>"
Got "<procedure variable type of procedure;Register>", expected "PROGRAMNAME.<procedure variable type of procedure;Register>"
Maybe https://www.freepascal.org/docs-html/ref/refse17.html help?See the "is nested" part.
{$MODESWITCH AdvancedRecords}{$MODESWITCH NestedProcVars}type T_ProcVar = procedure is nested;
Compile Project, Target: AdvRec.exe: Exit code 1, Errors: 1, Hints: 1AdvRec.lpr(38,14) Error: Incompatible type for arg no. 1: Got "<procedure variable type of procedure;Register>", expected "<procedure variable type of procedure is nested;Register>"AdvRec.lpr(30,13) Hint: Found declaration: _Test(const T_ProcVar);