aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala')
-rw-r--r--compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
index c17a32744..51fa15706 100644
--- a/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
+++ b/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -560,7 +560,10 @@ class DottyBackendInterface(outputDirectory: AbstractFile, val superCallsMap: Ma
def javaBinaryName: Name = toDenot(sym).fullNameSeparated("/") // addModuleSuffix(fullNameInternal('/'))
def javaClassName: String = toDenot(sym).fullName.toString// addModuleSuffix(fullNameInternal('.')).toString
def name: Name = sym.name
- def rawname: Name = sym.name // todo ????
+ def rawname: Name = {
+ val original = toDenot(sym).initial
+ sym.name(ctx.withPhase(original.validFor.phaseId))
+ }
// types
def info: Type = toDenot(sym).info