[vala/wip/issue548: 5/8] vala: No need to look further if an implementations was found
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/issue548: 5/8] vala: No need to look further if an implementations was found
- Date: Wed, 19 Dec 2018 23:54:47 +0000 (UTC)
commit 7c8f91b6c919a58e5043ccf54c96da7b4f92972b
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]