Skip to content

Commit 2af5329

Browse files
committed
Fix #511. The fix will not be effective until we update scalac fork dependency.
lampepfl/scala@9c054bd As bug is minor I do not want to update scalac fork dependency just yet.
1 parent cf7c245 commit 2af5329

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,10 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
733733

734734

735735
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
736740
}
737741

738742

0 commit comments

Comments
 (0)