On 07/06/2012 08:56 AM, andreas graeper wrote: > following compiles without warning/error but at runtime it tells me > (process:6285): GLib-GObject-WARNING **: cannot add interface type > `JJJ' to type `BBB' which does not conform to prerequisite `III' > > [snip] > > is there actually need to declare all interfaces in class-declaration, i.e. > interface i1 {} ; interface i2:i1 {} ... interface i99:i98 {} > class C : i99,...,i1 {} > ???
Yes, you need to declare all interfaces. This is the way Vala and GObject were designed. The order in which you list interfaces in the class declaration matters: class BBB : AAA,III,JJJ { will work. This is arguably a (minor) bug. It was reported last year: https://bugzilla.gnome.org/show_bug.cgi?id=656204 _______________________________________________ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list