Object-type construct properties overwrite their default with null
Submitted by d.f..@..web.de
Link to original bug (#734013)
Description
Created attachment 282115 An example for an overwritten default value
The attached file shows a class that has a construct-only property of type Object. Whenever the construct block of the property is called, it just outputs its value. By default the property shall be assigned some newly created Object.
Running the program first outputs some address, indicating that the default indeed was set. But after that it outputs "(nil)" indicating that the property was again assigned, now to a null value. Would the property be stored, as an automatic property would do, this would overwrite it.
This also happens with "set construct" blocks, but not with "set" blocks. They are called just once, as it should be expected from construct blocks also.
Attachment 282115, "An example for an overwritten default value":
construct-property.vala