mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 01:38:07 +02:00
* do not allow implementing interface methods using methods that are not
visible in the current class git-svn-id: trunk@40645 -
This commit is contained in:
parent
66b61bd607
commit
9c6838ecca
@ -519,7 +519,9 @@ implementation
|
||||
begin
|
||||
srsym:=tsym(hclass.symtable.FindWithHash(hashedid));
|
||||
if assigned(srsym) and
|
||||
(srsym.typ=procsym) then
|
||||
(srsym.typ=procsym) and
|
||||
((hclass=_class) or
|
||||
is_visible_for_object(srsym,_class)) then
|
||||
begin
|
||||
for i:=0 to Tprocsym(srsym).ProcdefList.Count-1 do
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user