Hi,
The attached sample code fails to compile correctly and crash when
executed.
> valac-head interface-test-4.vala -o interface-test-4
interface-test-4.c: In function `bar_real_set_field':
interface-test-4.c:126: warning: assignment discards qualifiers from
pointer target type
> ./interface-test-4
*** glibc detected *** ./interface-test-4: double free or corruption
(fasttop): 0x0804ff90 ***
Is the sample code correct? If not, what's wrong ?
Regards,
Emmanuel.
using GLib;
interface Foo : Object
{
abstract string# field {get; set;}
}
class Bar : Object, Foo
{
string# field { get; set; }
static int main (string[] args)
{
var bar = new Bar ();
bar.field = "Hello";
stdout.printf ("%s\n", bar.field);
}
}
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list