* don't check for a duplicate internal symbol in inherited symtables

This commit is contained in:
Sven/Sarah Barth 2022-02-05 19:36:49 +01:00
parent 3ca3c7a606
commit ac4df2b066

View File

@ -1987,8 +1987,10 @@ implementation
{ procsym and propertysym have special code
to override values in inherited classes. For other
symbols check for duplicates }
if not(sym.typ in [procsym,propertysym]) then
symbols check for duplicates (but for internal symbols only in this
symtable, not the whole hierarchy) }
if not(sym.typ in [procsym,propertysym]) and
not (sp_internal in tsym(sym).symoptions) then
begin
{ but private ids can be reused }
hsym:=search_struct_member(tobjectdef(defowner),hashedid.id);