Re: [Vala] Problems with static properties
- From: Jan Stępień <jan stepien cc>
- To: vala-list gnome org
- Subject: Re: [Vala] Problems with static properties
- Date: Wed, 28 Oct 2009 13:13:38 +0200
On Tue, 27 Oct 2009 05:33:16 +0200
Jan Stępień <jan stepien cc> wrote:
On Mon, 26 Oct 2009 07:14:15 +0200
Jan Stępień <jan stepien cc> 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
I filed this issue in Bugzilla.
https://bugzilla.gnome.org/show_bug.cgi?id=599892
Regards,
--
Jan Stępień <jan stepien cc>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]