Skip to content

Commit 7c8693b

Browse files
committed
Merge pull request #512 from dotty-staging/fix-511
Fix #511. Lambdas of traits that inherit abstract member.
2 parents ee51ea9 + cb99932 commit 7c8693b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

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

734734

735735
def addRemoteRemoteExceptionAnnotation: Unit = ()
736+
737+
def samMethod(): Symbol =
738+
toDenot(sym).info.abstractTermMembers.headOption.getOrElse(toDenot(sym).info.member(nme.apply)).symbol
736739
}
737740

738741

0 commit comments

Comments
 (0)