mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 20:19:33 +02:00
pdecsub.pas, parse_proc_head:
* register the type parameter symbols and their defs once we really keep them git-svn-id: trunk@32436 -
This commit is contained in:
parent
b9ca24d4df
commit
2eeb59591a
@ -1078,6 +1078,12 @@ implementation
|
|||||||
{ push the parameter symtable so that constraint definitions are added
|
{ push the parameter symtable so that constraint definitions are added
|
||||||
there and not in the owner symtable }
|
there and not in the owner symtable }
|
||||||
symtablestack.push(pd.parast);
|
symtablestack.push(pd.parast);
|
||||||
|
{ register the parameters }
|
||||||
|
for i:=0 to genericparams.count-1 do
|
||||||
|
begin
|
||||||
|
ttypesym(genericparams[i]).register_sym;
|
||||||
|
tstoreddef(ttypesym(genericparams[i]).typedef).register_def;
|
||||||
|
end;
|
||||||
insert_generic_parameter_types(pd,nil,genericparams);
|
insert_generic_parameter_types(pd,nil,genericparams);
|
||||||
symtablestack.pop(pd.parast);
|
symtablestack.pop(pd.parast);
|
||||||
freegenericparams:=false;
|
freegenericparams:=false;
|
||||||
|
Loading…
Reference in New Issue
Block a user