diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-30 16:26:15 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-30 16:26:15 +0200 |
commit | 2af532926bd4735c7f68b8e3305b39511e8ba7d3 (patch) | |
tree | d1f77c4f9ba918b9539919b823c9b19357c28b51 | |
parent | cf7c2459492d00106e6e38a2b5065df3197cd6bc (diff) | |
download | dotty-2af532926bd4735c7f68b8e3305b39511e8ba7d3.tar.gz dotty-2af532926bd4735c7f68b8e3305b39511e8ba7d3.tar.bz2 dotty-2af532926bd4735c7f68b8e3305b39511e8ba7d3.zip |
Fix #511. The fix will not be effective until we update scalac fork dependency.
https://github.com/DarkDimius/scala/commit/9c054bd687bbbcaa75f3f10a1d343998c6c1a2ba
As bug is minor I do not want to update scalac fork dependency just yet.
-rw-r--r-- | src/dotty/tools/backend/jvm/DottyBackendInterface.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala index 009b7fb2b..385ce37d0 100644 --- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala +++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala @@ -733,6 +733,10 @@ 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 } |