summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-01-20 16:19:40 +0000
committerMartin Odersky <odersky@gmail.com>2011-01-20 16:19:40 +0000
commit161a4fda3967b3b496d6afc98e285d4f5220998c (patch)
tree293279f33ffde8fa48c03837e75e6d757f0e1fe2 /src/compiler/scala/tools/nsc/typechecker/Implicits.scala
parent7a9f1437ab88403d8a9611c0790d583996db96c3 (diff)
downloadscala-161a4fda3967b3b496d6afc98e285d4f5220998c.tar.gz
scala-161a4fda3967b3b496d6afc98e285d4f5220998c.tar.bz2
scala-161a4fda3967b3b496d6afc98e285d4f5220998c.zip
Added askLinkPos command for hyperlinking.
Fixed a problem noted by Iulian in completion. Review by vigdorchik
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Implicits.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Implicits.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
index 2035c5e3bd..5e0f5779fe 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala
@@ -959,7 +959,7 @@ trait Implicits {
def allImplicits: List[SearchResult] = {
def search(iss: Infoss, isLocal: Boolean) = applicableInfos(iss, isLocal).values
- search(context.implicitss, true) ++ search(implicitsOfExpectedType, false) toList
+ (search(context.implicitss, true) ++ search(implicitsOfExpectedType, false)).toList.filter(_.tree ne EmptyTree)
}
}