GNOME Bugzilla – Bug 501584
Invalid C code for constant delegates
Last modified: 2008-03-16 21:28:27 UTC
Reported by Dominique Würtz: this using GLib; public class BugDemo { void foo() { } const GLib.Callback bar = foo; } leads to genarition of wrong C code. Problem is that in the .c file function declarations appear after initialization of const member variables.
*** Bug 522059 has been marked as a duplicate of this bug. ***
2008-03-16 Jürg Billeter <j@bitron.ch> * gobject/valaccodegenerator.vala, gobject/valaccodegeneratorsourcefile.vala: emit constants after function declarations as constants may depend on function declarations, fixes bug 501584 * tests/delegates.vala: test constants depending on function declarations Fixed in r1130.