using GLib;

public interface Foo: Object
{
        public abstract void test();
}
public interface Bar: Object
{
        public abstract void test();
}
public class FooBar: Object, Foo, Bar
{
        public void test(){}
}
void main()
{
        FooBar fb = new FooBar();
        fb.test();
        Foo f = fb;
        //OK
        f.test();
        Bar b = fb;
        //SEGFAULT
        b.test();
}
