False duplicate identifier compiler error with private members in derived cladd
Original Reporter info from Mantis: AP-Soft
-
Reporter name: AP-Soft
Original Reporter info from Mantis: AP-Soft
- Reporter name: AP-Soft
Description:
A private member in a class will cause a compiler error to be displayed,
if there is a private member with the same name in some predecessor class.
Steps to reproduce:
tCompilerBug = class( TCustomApplication)
private
abc: String;
protected
procedure DoRun; override;
public
end;
tAdvancedCompilerBug = class( tCompilerBug)
private
abc: String;
protected
public
end;
Additional information:
The second appearance is treated as duplicates identifier although both members are private.
In my eyes this is a contradiction against the scope "private".
Best regards!
Mantis conversion info:
- Mantis ID: 36857
- Build: 62129
- Version: 2.0.6