summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
diff options
context:
space:
mode:
authorEdmund Noble <edmundnoble@gmail.com>2016-12-26 17:43:04 -0500
committerEdmund Noble <Edmund Noble>2016-12-31 17:52:33 -0500
commitd1fc98370ad59518de96ae52e035e36b145180e2 (patch)
tree23e6c51ecea84f4aa476be7a4ace2302d46ef345 /src/compiler/scala/tools/nsc/typechecker/Contexts.scala
parentbf9b00ebede9ab16fc4662a3dd5f5fb5d6a5ab7c (diff)
downloadscala-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.scala2
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