mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-28 14:00:03 +02:00
* only change the visibility of an existing getter/setter to that of
its property in case the visibility of the property is higher than that of the getter/setter (on the JVM target when automatically generating getters/setters) git-svn-id: trunk@23523 -
This commit is contained in:
parent
e7315d035c
commit
2ed4b295fe
@ -932,8 +932,11 @@ implementation
|
||||
parentpd:=tprocdef(tprocsym(sym).procdeflist[0]);
|
||||
if parentpd.owner.defowner=p.owner.defowner then
|
||||
begin
|
||||
parentpd.visibility:=p.visibility;
|
||||
include(parentpd.procoptions,po_auto_raised_visibility);
|
||||
if parentpd.visibility<p.visibility then
|
||||
begin
|
||||
parentpd.visibility:=p.visibility;
|
||||
include(parentpd.procoptions,po_auto_raised_visibility);
|
||||
end;
|
||||
{ we are done, no need to create a wrapper }
|
||||
exit
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user