diff --git a/compiler/symtable.pas b/compiler/symtable.pas index 0d7a9e5b4d..8c847433b7 100644 --- a/compiler/symtable.pas +++ b/compiler/symtable.pas @@ -3456,11 +3456,6 @@ implementation ( not assigned(curstruct) and (symownerdef.owner.iscurrentunit) - ) or - ( - { helpers can access protected symbols } - is_objectpascal_helper(contextobjdef) and - def_is_related(tobjectdef(contextobjdef).extendeddef,symownerdef) ) ) or { access from a generic method that belongs to the class