check the type of the this-type, instead of the AST-node

This commit is contained in:
Erik Krogh Kristensen
2020-03-02 16:35:16 +01:00
parent e0fcc4af6a
commit 68fb8c52e9
3 changed files with 6 additions and 2 deletions

View File

@@ -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()] |