aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/NameOps.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/NameOps.scala
parentc27cbd16e6fd3cc00e603aebef95f477684b3390 (diff)
downloaddotty-e2056bb62e8d4ce5806111f0c54f7331eb690f0a.tar.gz
dotty-e2056bb62e8d4ce5806111f0c54f7331eb690f0a.tar.bz2
dotty-e2056bb62e8d4ce5806111f0c54f7331eb690f0a.zip
Polishings
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/NameOps.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/NameOps.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/NameOps.scala b/compiler/src/dotty/tools/dotc/core/NameOps.scala
index f49c82ee4..c4d551981 100644
--- a/compiler/src/dotty/tools/dotc/core/NameOps.scala
+++ b/compiler/src/dotty/tools/dotc/core/NameOps.scala
@@ -132,7 +132,7 @@ object NameOps {
/** If name ends in module class suffix, drop it */
def stripModuleClassSuffix: Name =
if (isModuleClassName)
- if (Config.semanticNames) name.without(NameInfo.ModuleClass.kind)
+ if (Config.semanticNames) name.exclude(NameInfo.ModuleClass.kind)
else name dropRight MODULE_SUFFIX.length
else name