[Vala] GLib.Time error if used in an interface



Hi,

I have this simple Interface, the implementation and the unit test.

Interface.vala---------------------------------------

public interface ITest: GLib.Object {
    public abstract GLib.Time time { get; set; }
}

Implementations.vala--------------------------------

public class ImplTest: GLib.Object, ITest {
    public GLib.Time time { get; set; }
}

test.vala ---------------------------------------

void testString () {
    var obj = new ImplTest();
}

void main (string[] args)
{
    Test.init(ref args);
    Test.add_func("/Vala/Interface/Time",testTime);
    Test.run ();
}

---------------------------------------------------

If I run the test i got:

/Vala/Interface/Time: 
GLib-GObject-CRITICAL **: g_param_spec_boxed: assertion `G_TYPE_IS_BOXED
(boxed_type)' failed
aborting...
Aborted


Can you tell me how I should work with this interface?
Many thanks!

-- 
Adi Roiban




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]