mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 00:39:34 +02:00
* also handle function references when a generic one had been parsed
This commit is contained in:
parent
b297199ab6
commit
06a00b53c3
@ -80,7 +80,7 @@ uses
|
||||
nobj,ncon,ncal,
|
||||
{ parser }
|
||||
scanner,
|
||||
pbase,pexpr,pdecsub,ptype,psub,pparautl,pdecl;
|
||||
pbase,pexpr,pdecsub,ptype,psub,pparautl,pdecl,procdefutil;
|
||||
|
||||
type
|
||||
tdeftypeset = set of tdeftyp;
|
||||
@ -2018,7 +2018,9 @@ uses
|
||||
end;
|
||||
if replaydepth>current_scanner.replay_stack_depth then
|
||||
parse_proctype_directives(tprocvardef(result));
|
||||
handle_calling_convention(tprocvardef(result),hcc_default_actions_intf);
|
||||
if po_is_function_ref in tprocvardef(result).procoptions then
|
||||
adjust_funcref(result,srsym,nil);
|
||||
handle_calling_convention(result,hcc_default_actions_intf);
|
||||
if not hintsprocessed and (replaydepth>current_scanner.replay_stack_depth) then
|
||||
begin
|
||||
try_consume_hintdirective(ttypesym(srsym).symoptions,ttypesym(srsym).deprecatedmsg);
|
||||
|
Loading…
Reference in New Issue
Block a user