check that Object() is called at the beginning of constructors
Submitted by Sebastian Reichel
Link to original bug (#669420)
Description
Created attachment 206851 a testcase, which generates broken code without any message
Hi,
valac generates broken code without any complains from valac (or gcc) if one tries to do this:
/* constructor */ public Bug () { this.foo = 0xDEAD; // C: access to self->priv->foo, self is NULL Object(); // C: init self }
Please throw an error, that the user is doing something stupid!
-- Sebastian
Attachment 206851, "a testcase, which generates broken code without any message":
testcase.vala
Version: 0.14.x