Dear All,
at the moment I am not able to isolate the problem, but it is the second time I see this happening in some application of mine and at the moment it is sistematic.
simply adding a design time a button in my application, and generating the sckeleton of "onclick" events, the compiler generates some function duplicates with empty code, the affected routines are the same each time, I know that these are not meaningful information, but any insight on what can be happening is appreciated.
just for example, at the begin I have:
type
TForm1 = class(TForm)
private
public
procedure A(xx...);
procedure B(xx...);
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
procedure TForm1.A(xx...);
begin
//do something
end;
procedure TForm1.B(xx...);
begin
//do something
end;
after adding a TButton and clicking on object inspector to create the onclick event the code becames,
TForm1 = class(TForm)
procedure Button1Click(Sender: TObject);
private
public
procedure A(xx...);
procedure B(xx...);
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.A(xx...); <-- duplicated
begin
//EMPTY
end;
procedure TForm1.B(xx...); <-- duplicted
begin
//EMPTY
end;
procedure TForm1.A(xx...);
begin
//do something
end;
procedure TForm1.B(xx...);
begin
//do something
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
end;
then the compiler warning was : "ERROR: overloaded functions have the same parameter list"
win-10 64bit, LAZ 2.0.12, fpc 3.2.0