diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-30 16:52:49 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-30 16:52:49 +0200 |
commit | cb999323b9e1cb2097a6257e01e32539678533b9 (patch) | |
tree | b47ef9eeb7d8fa63cbb12528f6027e2c4a75172e | |
parent | 2af532926bd4735c7f68b8e3305b39511e8ba7d3 (diff) | |
download | dotty-cb999323b9e1cb2097a6257e01e32539678533b9.tar.gz dotty-cb999323b9e1cb2097a6257e01e32539678533b9.tar.bz2 dotty-cb999323b9e1cb2097a6257e01e32539678533b9.zip |
Reuse Type.abstractTermMembers in DottyBackendInterface.
-rw-r--r-- | src/dotty/tools/backend/jvm/DottyBackendInterface.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala index 385ce37d0..393b8014a 100644 --- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala +++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala @@ -735,8 +735,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{ def addRemoteRemoteExceptionAnnotation: Unit = () def samMethod(): Symbol = - toDenot(sym).info.membersBasedOnFlags(Flags.Deferred, Flags.EmptyFlags).flatMap(_.altsWith(_ is Flags.Method)). - headOption.getOrElse(toDenot(sym).info.member(nme.apply)).symbol + toDenot(sym).info.abstractTermMembers.headOption.getOrElse(toDenot(sym).info.member(nme.apply)).symbol } |