summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codegen/valagtypemodule.vala7
1 files changed, 4 insertions, 3 deletions
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 3ce231702..7c1f1cf03 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -1483,10 +1483,11 @@ public class Vala.GTypeModule : GErrorModule {
// method inherited from base class
var base_method = cl_method;
- if (cl_method.base_method != null) {
- base_method = cl_method.base_method;
- } else if (cl_method.base_interface_method != null) {
+ if (cl_method.base_interface_method != null) {
base_method = cl_method.base_interface_method;
+ } else if (cl_method.base_method != null) {
+ //FIXME should this ever be possible here?
+ base_method = cl_method.base_method;
}
generate_method_declaration (base_method, cfile);