diff options
author | Edmund Noble <edmundnoble@gmail.com> | 2016-12-26 17:43:04 -0500 |
---|---|---|
committer | Edmund Noble <Edmund Noble> | 2016-12-31 17:52:33 -0500 |
commit | d1fc98370ad59518de96ae52e035e36b145180e2 (patch) | |
tree | 23e6c51ecea84f4aa476be7a4ace2302d46ef345 /src/compiler/scala/tools/nsc/typechecker/Contexts.scala | |
parent | bf9b00ebede9ab16fc4662a3dd5f5fb5d6a5ab7c (diff) | |
download | scala-d1fc98370ad59518de96ae52e035e36b145180e2.tar.gz scala-d1fc98370ad59518de96ae52e035e36b145180e2.tar.bz2 scala-d1fc98370ad59518de96ae52e035e36b145180e2.zip |
Improved error messages for identically named, differently prefixed types
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Contexts.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala index fde2f7bb03..d3c1f2b3f3 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala @@ -62,7 +62,7 @@ trait Contexts { self: Analyzer => def warnUnusedImports(unit: CompilationUnit) = if (!unit.isJava) { for (imps <- allImportInfos.remove(unit)) { - for (imp <- imps.reverse.distinct) { + for (imp <- imps.distinct.reverse) { val used = allUsedSelectors(imp) def isMask(s: ImportSelector) = s.name != nme.WILDCARD && s.rename == nme.WILDCARD |