[vala/staging] codegen: Actually create method cast for base interface method as needed
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codegen: Actually create method cast for base interface method as needed
- Date: Sun, 25 Nov 2018 17:31:14 +0000 (UTC)
commit d0fa1dd46a86b01f4d72bbcaf69bddb1f31dcf39
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Nov 25 18:27:32 2018 +0100
codegen: Actually create method cast for base interface method as needed
Keep the fallback to base method for now.
This will silence some incompatible pointer type warnings.
codegen/valagtypemodule.vala | 7 ++++---
1 file 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]