[Lazarus] IDE "Rename identifier" misfeature

Alexey Tor. aaa5500 at ya.ru
Tue May 26 00:25:23 CEST 2020


Hello

ATSynEdit has such function
procedure TATSynRanges.DeleteFromLineIndexer(AIndex: integer);
var
   Ptr: PATSynRange;
   NItemLen, iLine, iItem, j: integer;
begin
   Ptr:= ItemPtr(AIndex);
   for iLine:= Ptr^.Y2 downto Ptr^.Y do
   begin
     ..
   end;
end;

when I do "Rename identifier" from Ptr to ItemPtr, IDE allows to do it,
and I have conflict with class method ItemPtr(), which is even called in 
this function.

-- 
Regards,
Alexey Torgashin



More information about the lazarus mailing list