* handle_calling_convention is only needed for a function reference used in a record/class/object when it's an anonymous one

This commit is contained in:
Sven/Sarah Barth 2022-09-16 14:32:25 +02:00
parent c43f671baa
commit d1d0afe337

View File

@ -1861,9 +1861,9 @@ implementation
{ Add calling convention for procvar } { Add calling convention for procvar }
if ( if (
(hdef.typ=procvardef) and (hdef.typ=procvardef) or
(hdef.typesym=nil) is_funcref(hdef)
) or is_funcref(hdef) then ) and (hdef.typesym=nil) then
begin begin
if (hdef.typ=procvardef) and (po_is_function_ref in tprocvardef(hdef).procoptions) then if (hdef.typ=procvardef) and (po_is_function_ref in tprocvardef(hdef).procoptions) then
begin begin