Hi all,

in Controls.pas there is TControl.SetName(). In a form I made a procedure with

TMyForm.MyProcedure;
var
 setName: string;
begin
 //...
end;

The compiler complains about: frmMyForm.pas(467,3) Error: Duplicate
identifier "SetName"

It should do no problems. But If I want to use SetName of TControl
then I'll specifically invoke it. Normally the local variable should
have priority.

Is it a feature of FPC? :) Or should there be a bug filling on that
specific issue?

Best regards.

--
Alexandre Leclerc
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to