Lazarus 2.0.12 r64642 FPC 3.2.2 i386-win32-win32/win64
Given the following two files:
program Project1;
{$MACRO ON}
{$DEFINE module:=unit1}
uses unit1;
begin
module.Moo(1, 2);
module.Moo(1);
end.
and unit1.pas:
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
procedure Moo(A1, A2: Integer);
implementation
procedure Moo(A1, A2: Integer);
begin
end;
end.
The compiler gives the following error:
project1.lpr(4,6) Error: Wrong number of parameters specified for call to "Moo"which is the location of I in {$DEFINE. The error is actually on the 10-th line.
I believe it is a bug. Someone advice how to proceed regarding the present situation, migration to GitLab, etc.