aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-23 18:50:39 +0100
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:10 +0200
commite2056bb62e8d4ce5806111f0c54f7331eb690f0a (patch)
tree68e598f5fcf2c5e12d88813263a6dbc947ccdd35 /compiler/src/dotty/tools/dotc/core/SymDenotations.scala
parentc27cbd16e6fd3cc00e603aebef95f477684b3390 (diff)
downloaddotty-e2056bb62e8d4ce5806111f0c54f7331eb690f0a.tar.gz
dotty-e2056bb62e8d4ce5806111f0c54f7331eb690f0a.tar.bz2
dotty-e2056bb62e8d4ce5806111f0c54f7331eb690f0a.zip
Polishings
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/SymDenotations.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
index 3f8eda625..f671ab557 100644
--- a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -414,8 +414,8 @@ object SymDenotations {
if (Config.semanticNames) {
if (sep == "$")
// duplicate scalac's behavior: don't write a double '$$' for module class members.
- prefix = prefix.without(NameInfo.ModuleClassKind)
- name.mapSimpleCore(sn => prefix.derived(NameInfo.Qualified(sn, sep)))
+ prefix = prefix.exclude(NameInfo.ModuleClassKind)
+ name.mapSimpleCore(prefix.select(_, sep))
}
else {
if (owner.is(ModuleClass, butNot = Package) && sep == "$")