diff options
author | Dmitry Petrashko <dark@d-d.me> | 2015-05-04 21:51:04 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2015-05-04 21:51:04 +0200 |
commit | 7c8693b62bfa73a47eb781bf0e372f68acc0db52 (patch) | |
tree | 4e12dc6e4e333c5ce5da333d4d615b43b783718c | |
parent | ee51ea9ab9bab7852c4eaa16a099436b1cd2bc2f (diff) | |
parent | cb999323b9e1cb2097a6257e01e32539678533b9 (diff) | |
download | dotty-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.
-rw-r--r-- | src/dotty/tools/backend/jvm/DottyBackendInterface.scala | 3 |
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 } |