[Lazarus] Is this normal or bug ?

FreeMan freeman35 at delphiturkiye.com
Sat Aug 2 11:41:02 CEST 2014


   Tmy_Form = class(TForm)
   private
     { private declarations }
      v1:integer;
      v2:string;
   public
     { public declarations }
     function exmple(v1:integer;v2:string):boolean;
   end;

when compile:

xx.pas(8,21) Error: Duplicate identifier "v1"
xx.pas(8,32) Error: Duplicate identifier "v2"

first definition main class's variable, compiler error in function 
parameter "Duplicate identifier" is it normal or bug?




More information about the Lazarus mailing list