diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-16 17:00:15 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-16 17:00:15 +0200 |
commit | 42b541ad055ab0fae42991362bc88ec16b74f30a (patch) | |
tree | 7864e0ed234caab2e464fdf6b7c8082c27692f02 /src/dotty/tools/backend | |
parent | 235df32bffcfbc58f83f113bec81072f8de50ee9 (diff) | |
download | dotty-42b541ad055ab0fae42991362bc88ec16b74f30a.tar.gz dotty-42b541ad055ab0fae42991362bc88ec16b74f30a.tar.bz2 dotty-42b541ad055ab0fae42991362bc88ec16b74f30a.zip |
Better workaround for #342. This one works also for symbols which are InSuperCall.
Diffstat (limited to 'src/dotty/tools/backend')
-rw-r--r-- | src/dotty/tools/backend/jvm/DottyBackendInterface.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala index afe9b6f77..009b7fb2b 100644 --- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala +++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala @@ -427,7 +427,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{ case TermRef(prefix: ThisType, name) => Some(tpd.This(prefix.cls).select(i.symbol)) case TermRef(NoPrefix, name) => - if (i.symbol is Flags.Method) Some(This(i.symbol.enclosingClass).select(i.symbol)) // workaround #342 todo: remove after fixed + if (i.symbol is Flags.Method) Some(This(i.symbol.topLevelClass).select(i.symbol)) // workaround #342 todo: remove after fixed else None case _ => None } |