valac forgot base.property assignment
Submitted by Nicolas Bruguier
Link to original bug (#650243)
Description
When using a base property assignment, valac does not generate the corresponding C code for assignment. For example if we implement a subclass of Gtk.Label and we assign and print the base.label in constructor :
public class MyLabel : Gtk.Label
{
public MyLabel (string inStr)
{
base.label = inStr;
message ("%s", base.label);
}
}
valac generate this following C code :
MyLabel* my_label_construct (GType object_type, const gchar* inStr) {
MyLabel * self = NULL;
const gchar* _tmp0_ = NULL;
g_return_val_if_fail (inStr != NULL, NULL);
self = (MyLabel*) g_object_new (object_type, NULL);
_tmp0_ = gtk_label_get_label (GTK_LABEL (self));
g_message ("test-base.vala:6: %s", _tmp0_);
return self;
}
where it miss the base.label assignment.
Attachment 187860, "test base property assignment":
test-base.vala
Edited by Rico Tzschichholz