mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user