* when creating the static field of a generic, insert it into the generic instead of the global symtable as it isn't really used anyway

git-svn-id: trunk@43542 -
This commit is contained in:
svenbarth 2019-11-21 21:44:43 +00:00
parent 06fc84037c
commit a041f899d3

View File

@ -1394,7 +1394,10 @@ implementation
hstaticvs.visibility:=fieldvs.visibility;
{$else jvm}
include(hstaticvs.symoptions,sp_internal);
tabstractrecordsymtable(recst).get_unit_symtable.insert(hstaticvs);
if df_generic in tdef(recst.defowner).defoptions then
tabstractrecordsymtable(recst).insert(hstaticvs)
else
tabstractrecordsymtable(recst).get_unit_symtable.insert(hstaticvs);
{$endif jvm}
{ generate the symbol for the access }
sl:=tpropaccesslist.create;