diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-22 11:30:26 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:10 +0200 |
commit | e1181d9f5b3fc56baafbe859d3d3441dfdb113a1 (patch) | |
tree | 41fb3ba223cd9e9aa299a1b0c2ecd5e3fe3928c8 /compiler/src/dotty/tools/dotc/core | |
parent | d44eb20b8361fdce92496e3f62a8b9d94d93baab (diff) | |
download | dotty-e1181d9f5b3fc56baafbe859d3d3441dfdb113a1.tar.gz dotty-e1181d9f5b3fc56baafbe859d3d3441dfdb113a1.tar.bz2 dotty-e1181d9f5b3fc56baafbe859d3d3441dfdb113a1.zip |
Fix typos and redundant statements in previous commits
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/SymDenotations.scala | 3 | ||||
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala index 150bb1584..0483e0ca1 100644 --- a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala @@ -433,9 +433,8 @@ object SymDenotations { val fn2 = fullNameSeparated(separator, true) assert(fn1.toString == fn2.toString, s"mismatch, was: $fn1, sem: $fn2") fn2 - } + } else fullNameSeparated(separator, false) - } /** The encoded flat name of this denotation, where joined names are separated by `separator` characters. */ def flatName(implicit ctx: Context): Name = fullNameSeparated("") diff --git a/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala b/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala index 40e561d3f..0ea643e0d 100644 --- a/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala +++ b/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala @@ -248,11 +248,8 @@ class ClassfileLoader(val classfile: AbstractFile) extends SymbolLoader { (module, _) => new NoCompleter() withDecls newScope withSourceModule (_ => module)) .moduleClass.denot.asClass } - val res = if (rootDenot is ModuleClass) (linkedDenot, rootDenot) else (rootDenot, linkedDenot) - println(s"root denots of ${rootDenot.name.debugString} = ${res._1.name.debugString}, ${res._2.name.debugString} / ${rootDenot is ModuleClass}") - res } override def doComplete(root: SymDenotation)(implicit ctx: Context): Unit = |