mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 05:39:26 +02:00
* free the list containing the generic parameters as after calling insert_generic_parameter_types() it's no longer required (though this means that the condition handling generictypelist instead needs to be adjusted)
git-svn-id: trunk@39561 -
This commit is contained in:
parent
c1cfd87b56
commit
32db846289
@ -1125,6 +1125,9 @@ implementation
|
||||
tstoreddef(ttypesym(genericparams[i]).typedef).register_def;
|
||||
end;
|
||||
insert_generic_parameter_types(pd,nil,genericparams);
|
||||
{ the list is no longer required }
|
||||
genericparams.free;
|
||||
genericparams:=nil;
|
||||
symtablestack.pop(pd.parast);
|
||||
freegenericparams:=false;
|
||||
parse_generic:=true;
|
||||
@ -1151,9 +1154,8 @@ implementation
|
||||
{ start token recorder for the declaration }
|
||||
pd.init_genericdecl;
|
||||
current_scanner.startrecordtokens(pd.genericdecltokenbuf);
|
||||
end;
|
||||
|
||||
if assigned(genericdef) and not assigned(genericparams) then
|
||||
end
|
||||
else if assigned(genericdef) then
|
||||
insert_generic_parameter_types(pd,tstoreddef(genericdef),generictypelist);
|
||||
|
||||
{ methods inherit df_generic or df_specialization from the objectdef }
|
||||
|
Loading…
Reference in New Issue
Block a user