Fix for the visibility checking with the correct configuration.

This commit is contained in:
Henrique Gottardi Werlang 2025-03-15 10:48:47 -03:00
parent 8870c72d91
commit d48e984ba0

View File

@ -21031,7 +21031,7 @@ begin
Call.AddArg(CreateRTTIArgList(Proc,Proc.ProcType.Args,AContext));
// add visibility
ExtVis:=GetExtRTTIVisibilityParam(Proc,ParentEl.RTTIVisibility.Fields);
ExtVis:=GetExtRTTIVisibilityParam(Proc,ParentEl.RTTIVisibility.Methods);
if ExtVis<>ExtRTTIVisDefaultMethod then
AddExtRTTIVisibility;
@ -21208,7 +21208,7 @@ begin
Call.AddArg(CreateLiteralString(Prop,GetAccessorName(SetterPas)));
// add visibility
ExtVis:=GetExtRTTIVisibilityParam(Prop,ParentEl.RTTIVisibility.Fields);
ExtVis:=GetExtRTTIVisibilityParam(Prop,ParentEl.RTTIVisibility.Properties);
if ExtVis<>ExtRTTIVisDefaultProperty then
AddExtRTTIVisibility;