Skip to content

Commit cb99932

Browse files
committed
Reuse Type.abstractTermMembers in DottyBackendInterface.
1 parent 2af5329 commit cb99932

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dotty/tools/backend/jvm/DottyBackendInterface.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,8 +735,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
735735
def addRemoteRemoteExceptionAnnotation: Unit = ()
736736

737737
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
738+
toDenot(sym).info.abstractTermMembers.headOption.getOrElse(toDenot(sym).info.member(nme.apply)).symbol
740739
}
741740

742741

0 commit comments

Comments
 (0)