Delphi mode sometimes allows duplicate property names
Original Reporter info from Mantis: Maxerist
-
Reporter name: Max Vlasov
Original Reporter info from Mantis: Maxerist
- Reporter name: Max Vlasov
Description:
The following code
...
{$mode delphi}
...
type
TTestObject = class(TCustomControl)
private
fValue: integer;
protected
property Value: integer read fValue write fValue;
property Value: integer read fValue;
end;
is allowed by fpc, while objfpc forbid it (Error: Duplicate identifier "Value")
Additional information:
Such issue being minor by nature can for example silently install a design-time object in lazarus that will have a read-only property designed for being both read and write.
Mantis conversion info:
- Mantis ID: 20580
- OS: Windows, Linux (Ubuntu)
- Build: [2011/07/09]
- Platform: Win32/Linux
- Version: 2.5.1
- Fixed in version: 3.0.0
- Fixed in revision: 19564 (#b8589d98)
- Monitored by: » Vincent (Vincent Snijders)