Incompatible return types
Issue #170
resolved
The methods resolveInterfaceMethodReference
and resolveClassMethodReference
on a project, have the return types Option[Method]
and Result[Method]
, which is unintuitive.
For example i would like do do s.th. like:
val m = if (call.isInterface)
project.resolveInterfaceMethodReference(receiverObjectType, call.name, call.descriptor)
else
project.resolveClassMethodReference(receiverObjectType, call.name,call.descriptor)
Comments (2)
-
repo owner -
repo owner - changed status to resolved
- Log in to comment
I will add a "toOption" method to facilitate the above use case.