Fix typeParametersInScope consistency query

The selection of type variables mentioned in a particular class previously didn't work as intended, so the consistency query would always pass.
This commit is contained in:
Chris Smowton
2022-05-09 14:59:20 +01:00
parent fff70da650
commit d291e0cf10

View File

@@ -36,5 +36,5 @@ TypeVariable getATypeVariableInScope(RefType type) {
from ClassOrInterface typeUser, TypeVariable outOfScope
where
outOfScope = getAMentionedType(typeUser) and not outOfScope = getATypeVariableInScope(typeUser)
outOfScope = getATypeUsedInClass(typeUser) and not outOfScope = getATypeVariableInScope(typeUser)
select "Type " + typeUser + " uses out-of-scope type variable " + outOfScope