GNOME Bugzilla – Bug 591752
Constructor: self is null
Last modified: 2009-08-16 21:04:07 UTC
Please describe the problem: Hi, In certains conditions, self can be null, in the constructor. Steps to reproduce: public class Test : Object { public string foo { get; construct; } public Test (string foo) { print ("%p\n", this); this.foo = foo; print ("%p\n", this); } } void main () { new Test ("mln"); } Actual results: 0x40115d 0xc96400 Expected results: Does this happen every time? Other information: The self variable is initialize after all construct properties:
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 567269 ***