mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02: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