GNOME Bugzilla – Bug 590200
declaring virtual signals results in compile error
Last modified: 2009-08-01 15:37:04 UTC
Please describe the problem: Trying to declare a virtual signal in a class so a subclass may override it: public class Xyzzy : Object { public virtual signal void notify(); } public class Fubar : Xyzzy { public override void notify() { message("override"); } } void main() { Fubar f = new Fubar(); f.notify(); } The C compiler generates this error for this code: valac --save-temps test.vala -o test /home/jim/prj/test/test.c: In function ‘fubar_class_init’: /home/jim/prj/test/test.c:107: error: ‘XyzzyClass’ has no member named ‘notify’ error: cc exited with status 256 Compilation failed: 1 error(s), 0 warning(s) I'm using valac 0.7.4. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of 571685 ***