[vala/0.42] 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/0.42] codegen: Actually create method cast for base interface method as needed
- Date: Mon, 26 Nov 2018 09:15:34 +0000 (UTC)
commit 6e4af0c19d005ef06e8af355fe780b7c86942011
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 63be8e092..73c2f8add 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -1463,10 +1463,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]