The nodefault value of real/string/pointer properties is not inherited from parent class
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
TMyComp = class(TComponent)
private
fS: Double;
public
property S: Double read fS write fS nodefault;
end;
TMyComp2 = class(TMyComp)
published
property S; // <<< property S does have a well defined default value of 0.0 although nodefault is set in parent class - bug
end;
Steps to reproduce:
Please see the attached project. The project can be used as a compiler test case as well.
Additional information:
Patch is attached.
Related report: #31985 (closed)
Mantis conversion info:
- Mantis ID: 33563
- Build: 38675
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 39356 (#eb619237)
- Monitored by: » Cyrax (Cyrax)