The stored property modifier deletes inherited default value
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
fI: Integer;
public
property I: Integer read fI write fI stored False default 1;
end;
TMyComp2 = class(TMyComp)
published
property I stored True; // <<< the property should inherit "default 1" from TMyComp but it is deleted - 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: 33564
- Build: 38675
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 39357 (#b70fc528)
- Monitored by: » Cyrax (Cyrax)