mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Replace type variables before attempting to match to an array generation
This commit is contained in:
@@ -383,7 +383,7 @@ private class ArrayGenMethod extends GenMethod {
|
||||
ArrayGenMethod() { this = type.getName() + "genmethod" }
|
||||
|
||||
override predicate appliesTo(Type t, Content c) {
|
||||
t = type and
|
||||
replaceTypeVariable(t.(Array).getElementType()) = type.getElementType() and
|
||||
c instanceof ArrayContent
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user