aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-22 19:18:20 +0100
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:10 +0200
commitbbc84eabcd244179299ad435b6e9d7473e5ff892 (patch)
treebda0f49b9cff4847fa174a3d52f9eb7b5806cdcc /compiler/src/dotty/tools/dotc/core/SymDenotations.scala
parent19bc1ff09fa73e13be7e3464b8440c04b657aa82 (diff)
downloaddotty-bbc84eabcd244179299ad435b6e9d7473e5ff892.tar.gz
dotty-bbc84eabcd244179299ad435b6e9d7473e5ff892.tar.bz2
dotty-bbc84eabcd244179299ad435b6e9d7473e5ff892.zip
Implement startsWith/encode/decode for derived names.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/SymDenotations.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
index 0483e0ca1..070fdf345 100644
--- a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -415,7 +415,7 @@ object SymDenotations {
if (sep == "$")
// duplicate scalac's behavior: don't write a double '$$' for module class members.
prefix = prefix.without(NameInfo.ModuleClassKind)
- prefix.derived(NameInfo.Qualified(name.toTermName, sep))
+ prefix.derived(NameInfo.Qualified(name.toSimpleName, sep))
}
else {
if (owner.is(ModuleClass, butNot = Package) && sep == "$")