QL: Ignore overridden predicates in consistency check

This commit is contained in:
Taus
2021-10-15 10:58:38 +00:00
committed by GitHub
parent b5bef24ce2
commit 9c82f72720

View File

@@ -287,7 +287,9 @@ module PredConsistency {
strictcount(PredicateOrBuiltin p0 |
resolveCall(call, p0) and
// aliases are expected to resolve to multiple.
not exists(p0.getDeclaration().(ClasslessPredicate).getAlias())
not exists(p0.getDeclaration().(ClasslessPredicate).getAlias()) and
// overridden predicates may have multiple targets
not p0.getDeclaration().(ClassPredicate).isOverride()
) and
c > 1 and
resolveCall(call, p)