Hello to all
im starting studying lazarus hand in hand with freepascal.
im wondering why in a given unit w/ two class types - where one is a subclass of the other - having a field (or variable) of similar names would cause lazarus (0.9.16 beta) to complain of duplicate identifier while free pascal (2.0.4) would accept the same code. my code was used under 'Delphi compatibility option' for both fpc and lazarus.
for example, the following code snippet will be accepted by FPC IDE but lazarus would complain of duplicate identifier, which is 'ID'.
===================================
interface {section}
type
MyClass = class
ID : integer;
procedure MyProc;
end;
NewClass = class(MyClass)
ID : string;
end;
{lazarus complains the second 'ID' of being a duplicate identifier; fpc does not and compiles successfully. If I change the second ID variable in another name w/c is unique, lazarus would then compile the code succesfully.}
===================================
btw, the project was a custom program for lazarus, selected on 'Project -> New Project -> Custom Program'.
thanks in advance for the answer
