aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abstractmetalang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index e3b431dd..13942f76 100644
--- a/abstractmetalang.cpp
+++ b/abstractmetalang.cpp
@@ -686,7 +686,7 @@ FunctionModificationList AbstractMetaFunction::modifications(const AbstractMetaC
FunctionModificationList mods;
while (implementor) {
mods += implementor->typeEntry()->functionModifications(minimalSignature());
- if (implementor == implementor->baseClass())
+ if (implementor == implementor->baseClass() || implementor == implementingClass())
break;
implementor = implementor->baseClass();
}