diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-23 18:50:39 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:10 +0200 |
commit | e2056bb62e8d4ce5806111f0c54f7331eb690f0a (patch) | |
tree | 68e598f5fcf2c5e12d88813263a6dbc947ccdd35 /compiler/src/dotty/tools/dotc/core/NameOps.scala | |
parent | c27cbd16e6fd3cc00e603aebef95f477684b3390 (diff) | |
download | dotty-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.scala | 2 |
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 |