Browse Source

* protected symbols are visible for defs declared in a local symtable as well

Sven/Sarah Barth 3 years ago
parent
commit
3eac88eeaf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/symtable.pas

+ 1 - 1
compiler/symtable.pas

@@ -3310,7 +3310,7 @@ implementation
                        ) or
                        ) or
                        (
                        (
                         assigned(contextobjdef) and
                         assigned(contextobjdef) and
-                        (contextobjdef.owner.symtabletype in [globalsymtable,staticsymtable,ObjectSymtable,recordsymtable]) and
+                        (contextobjdef.owner.symtabletype in [globalsymtable,staticsymtable,ObjectSymtable,recordsymtable,localsymtable]) and
                         (contextobjdef.owner.iscurrentunit) and
                         (contextobjdef.owner.iscurrentunit) and
                         def_is_related(contextobjdef,symownerdef)
                         def_is_related(contextobjdef,symownerdef)
                        ) or
                        ) or