Hi all,
I just have begun hacking with Vala and I found an odd behaviour.
$ 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?
Cheers,
--
Jan Stępień <[email protected]>
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list