[vala/wip/issue548: 1/5] vala: No need to look further if an implementations was found



commit 99ee75901472771379a2ec5bf8e5ca8ae57f9e99
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Dec 19 08:21:21 2018 +0100

    vala: No need to look further if an implementations was found

 vala/valaclass.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index 2abbc7766..81bc6ba91 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -738,7 +738,7 @@ public class Vala.Class : ObjectTypeSymbol {
                                                if (m.is_abstract) {
                                                        var implemented = false;
                                                        var base_class = this;
-                                                       while (base_class != null) {
+                                                       while (base_class != null && !implemented) {
                                                                foreach (var impl in base_class.get_methods 
()) {
                                                                        if (impl.base_interface_method == m 
|| (base_class != this
                                                                            && impl.base_interface_method == 
null && impl.name == m.name


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]