aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/backend
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2015-05-04 21:51:04 +0200
committerDmitry Petrashko <dark@d-d.me>2015-05-04 21:51:04 +0200
commit7c8693b62bfa73a47eb781bf0e372f68acc0db52 (patch)
tree4e12dc6e4e333c5ce5da333d4d615b43b783718c /src/dotty/tools/backend
parentee51ea9ab9bab7852c4eaa16a099436b1cd2bc2f (diff)
parentcb999323b9e1cb2097a6257e01e32539678533b9 (diff)
downloaddotty-7c8693b62bfa73a47eb781bf0e372f68acc0db52.tar.gz
dotty-7c8693b62bfa73a47eb781bf0e372f68acc0db52.tar.bz2
dotty-7c8693b62bfa73a47eb781bf0e372f68acc0db52.zip
Merge pull request #512 from dotty-staging/fix-511
Fix #511. Lambdas of traits that inherit abstract member.
Diffstat (limited to 'src/dotty/tools/backend')
-rw-r--r--src/dotty/tools/backend/jvm/DottyBackendInterface.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
index 2e904cc23..7313070e0 100644
--- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -733,6 +733,9 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
def addRemoteRemoteExceptionAnnotation: Unit = ()
+
+ def samMethod(): Symbol =
+ toDenot(sym).info.abstractTermMembers.headOption.getOrElse(toDenot(sym).info.member(nme.apply)).symbol
}