From 1f767c81e5d30d8caf88934bb36a71603fd5fc19 Mon Sep 17 00:00:00 2001 From: Bruno da Silva Belo Date: Tue, 17 Sep 2019 19:35:31 -0300 Subject: [PATCH] eolian-mono: add compiler's complaint methods. Summary: New default checkers breaks mono's test. Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9999 --- src/tests/efl_mono/dummy_test_object.c | 22 ++++++++++++++++++++++ src/tests/efl_mono/dummy_test_object.eo | 3 +++ 2 files changed, 25 insertions(+) diff --git a/src/tests/efl_mono/dummy_test_object.c b/src/tests/efl_mono/dummy_test_object.c index a880dc40c6..110af73d6d 100644 --- a/src/tests/efl_mono/dummy_test_object.c +++ b/src/tests/efl_mono/dummy_test_object.c @@ -16,6 +16,8 @@ typedef struct Dummy_Test_Object_Data Eina_List *list_for_accessor; int setter_only; int iface_prop; + int protected_prop; + int public_getter_private_setter; Eo *provider; Eo *iface_provider; int prop1; @@ -4672,6 +4674,26 @@ int _dummy_test_object_get_setter_only(EINA_UNUSED Eo *obj, Dummy_Test_Object_Da return pd->setter_only; } +void _dummy_test_object_dummy_test_iface_protected_prop_set(EINA_UNUSED Eo *obj, Dummy_Test_Object_Data *pd, int value) +{ + pd->protected_prop = value; +} + +int _dummy_test_object_dummy_test_iface_protected_prop_get(EINA_UNUSED const Eo *obj, Dummy_Test_Object_Data *pd) +{ + return pd->protected_prop; +} + +void _dummy_test_object_dummy_test_iface_public_getter_private_setter_set(EINA_UNUSED Eo *obj, Dummy_Test_Object_Data *pd, int value) +{ + pd->public_getter_private_setter = value; +} + +int _dummy_test_object_dummy_test_iface_public_getter_private_setter_get(EINA_UNUSED const Eo *obj, Dummy_Test_Object_Data *pd) +{ + return pd->public_getter_private_setter; +} + void _dummy_test_object_dummy_test_iface_iface_prop_set(EINA_UNUSED Eo *obj, Dummy_Test_Object_Data *pd, int value) { pd->iface_prop = value; diff --git a/src/tests/efl_mono/dummy_test_object.eo b/src/tests/efl_mono/dummy_test_object.eo index 676b68a421..52eab417f1 100644 --- a/src/tests/efl_mono/dummy_test_object.eo +++ b/src/tests/efl_mono/dummy_test_object.eo @@ -1653,6 +1653,9 @@ class Dummy.Test_Object extends Efl.Object implements Dummy.Test_Iface { Efl.Object.provider_find; Dummy.Test_Iface.emit_nonconflicted; Dummy.Test_Iface.iface_prop { get; set; } + Dummy.Test_Iface.protected_prop { get; set; } + Dummy.Test_Iface.public_getter_private_setter{ get; set; } + Dummy.Test_Iface.static_prop{ get; set; } Dummy.Test_Iface.method_protected; Dummy.Test_Iface.call_method_protected; }