Skip to content

Commit

Permalink
Fix test0164 - getDeclaringMethod() should return the declaration bin…
Browse files Browse the repository at this point in the history
…ding

Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker authored and robstryker committed Oct 14, 2024
1 parent dbbbe21 commit 7b4b9ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,10 @@ public IMethodBinding getDeclaringMethod() {
do {
if (parentSymbol instanceof final MethodSymbol method) {
if (method.type instanceof Type.MethodType methodType) {
return this.resolver.bindings.getMethodBinding(methodType, method, null, isGeneric);
return this.resolver.bindings.getMethodBinding(methodType, method, null, true);
}
if( method.type instanceof Type.ForAll faType && faType.qtype instanceof MethodType mtt) {
IMethodBinding found = this.resolver.bindings.getMethodBinding(mtt, method, null, isGeneric);
IMethodBinding found = this.resolver.bindings.getMethodBinding(mtt, method, null, true);
return found;
}
return null;
Expand Down

0 comments on commit 7b4b9ad

Please sign in to comment.