mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
check the type of the this-type, instead of the AST-node
This commit is contained in:
@@ -105,7 +105,7 @@ predicate signaturesMatch(MethodSignature method, MethodSignature other) {
|
||||
not exists(method.getBody().getThisTypeAnnotation()) and
|
||||
not exists(other.getBody().getThisTypeAnnotation())
|
||||
or
|
||||
method.getBody().getThisTypeAnnotation() = other.getBody().getThisTypeAnnotation()
|
||||
method.getBody().getThisTypeAnnotation().getType() = other.getBody().getThisTypeAnnotation().getType()
|
||||
) and
|
||||
// The types are compared in matchingCallSignature. This is sanity-check that the textual representation of the type-annotations are somewhat similar.
|
||||
forall(int i | i in [0 .. -1 + method.getBody().getNumParameter()] |
|
||||
|
||||
Reference in New Issue
Block a user