Browse files

Fix for unreachable code warning.

Oops, I miss when unreachable code was an error.
  • Loading branch information...
1 parent 01716c8 commit b08c135ce243626740d6a561fd183470204463b0 @paulp paulp committed May 16, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/compiler/scala/tools/nsc/typechecker/Implicits.scala
View
3 src/compiler/scala/tools/nsc/typechecker/Implicits.scala
@@ -999,8 +999,7 @@ trait Implicits {
} else invalidImplicits take 1 foreach { sym =>
def isSensibleAddendum = pt match {
case Function1(_, out) => out <:< sym.tpe.finalResultType
- case tp => tp <:< sym.tpe.finalResultType
- case _ => false
+ case _ => pt <:< sym.tpe.finalResultType
}
// Don't pitch in with this theory unless it looks plausible that the
// implicit would have helped

0 comments on commit b08c135

Please sign in to comment.