aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2014-12-05 17:26:42 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-12-16 13:15:03 +0100
commit72c979ebdc72235971d48827fd89a607dabcfb55 (patch)
treeb8f0f594986590fda0c271d87c9e2307cf14f844 /src/dotty/tools/backend/jvm/DottyBackendInterface.scala
parentd498b6a4238a765e23ca320f8360799bee845e52 (diff)
downloaddotty-72c979ebdc72235971d48827fd89a607dabcfb55.tar.gz
dotty-72c979ebdc72235971d48827fd89a607dabcfb55.tar.bz2
dotty-72c979ebdc72235971d48827fd89a607dabcfb55.zip
Fix #258: string trailing $ in module names in backend.
Diffstat (limited to 'src/dotty/tools/backend/jvm/DottyBackendInterface.scala')
-rw-r--r--src/dotty/tools/backend/jvm/DottyBackendInterface.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
index 36dc2d334..6358def4a 100644
--- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -211,7 +211,9 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
}
def requiredModule[T](implicit evidence: ClassTag[T]): Symbol = {
- ctx.requiredModule(erasureString(evidence.runtimeClass).toTermName)
+ val moduleName = erasureString(evidence.runtimeClass)
+ val className = if (moduleName.endsWith("$")) moduleName.dropRight(1) else moduleName
+ ctx.requiredModule(className.toTermName)
}