summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Implicits.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Implicits.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
index 9bc6968e02..6ca93116d6 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
@@ -494,7 +494,7 @@ self: Analyzer =>
* - the parts of its base types
*/
private def parts(tp: Type): List[Type] = {
- val partMap = new collection.jcl.LinkedHashMap[Symbol, List[Type]]
+ val partMap = new collection.mutable.LinkedHashMap[Symbol, List[Type]]
/** Add a new type to partMap, unless a subtype of it with the same
* type symbol exists already.
*/
@@ -641,8 +641,9 @@ self: Analyzer =>
val resultTree = implicitManifest(pt)
if (resultTree != EmptyTree) result = new SearchResult(resultTree, EmptyTreeTypeSubstituter)
}
- if (result == SearchFailure && settings.verbose.value) //!!!
+ if (result == SearchFailure && settings.debug.value)
println("no implicits found for "+pt+" "+pt.typeSymbol.info.baseClasses+" "+parts(pt)+implicitsOfExpectedType)
+
if (util.Statistics.enabled) impltime += (currentTime - startTime)
result
}