On Mon, 26 Oct 2009 07:14:15 +0200 Jan Stępień <[email protected]> wrote: > $ cat Test.vala > > class Test { > public static int x {get; set;} > Test(int val) { x = val; nop(x); } > private void nop(int a) { } > } > > $ valac -C Test.vala > > Here's a fragment from Test.c: > > static Test* test_construct (GType object_type, gint val) { > Test* self; > self = (Test*) g_type_create_instance (object_type); > test_set_x (val); > test_nop (self); /* Where is the second parameter? */ > return self; > } > > Shouldn't there be > > test_nop (self, test_get_x()); > > instead of the line to which I added a comment?
The problem is also present in the latest Git head (ddfe9c7). The output from the console might be helpful: ** (valac:15544): CRITICAL **: vala_ccode_member_access_construct_pointer: assertion `container != NULL' failed ** (valac:15544): CRITICAL **: vala_ccode_member_access_construct_pointer: assertion `container != NULL' failed ** (valac:15544): CRITICAL **: vala_ccode_function_call_add_argument: assertion `expr != NULL' failed Any ideas? Cheers, -- Jan Stępień <[email protected]> _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
