We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2af5329 commit cb99932Copy full SHA for cb99932
src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -735,8 +735,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
735
def addRemoteRemoteExceptionAnnotation: Unit = ()
736
737
def samMethod(): Symbol =
738
- toDenot(sym).info.membersBasedOnFlags(Flags.Deferred, Flags.EmptyFlags).flatMap(_.altsWith(_ is Flags.Method)).
739
- headOption.getOrElse(toDenot(sym).info.member(nme.apply)).symbol
+ toDenot(sym).info.abstractTermMembers.headOption.getOrElse(toDenot(sym).info.member(nme.apply)).symbol
740
}
741
742
0 commit comments