aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/backend
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-01-30 14:29:30 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-01-30 14:39:15 +0100
commitac76968e59453d8006212aa8e92f5c9d04e5c257 (patch)
tree2787cfbbac9637eac631b716c8a10b459d7fa169 /src/dotty/tools/backend
parent537c53b2eba195317f0e7f0ede0cf3fdbd80e790 (diff)
downloaddotty-ac76968e59453d8006212aa8e92f5c9d04e5c257.tar.gz
dotty-ac76968e59453d8006212aa8e92f5c9d04e5c257.tar.bz2
dotty-ac76968e59453d8006212aa8e92f5c9d04e5c257.zip
workaround #342
That's a hack. That allows to continue to work on backend. Should be removed after #342 is fixed.
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 672e00a5c..14408ce7d 100644
--- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -282,6 +282,9 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
Some(tpd.ref(prefix).select(i.symbol))
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
+ else None
case _ => None
}
}