From b08c135ce243626740d6a561fd183470204463b0 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 16 May 2013 21:42:16 -0700 Subject: Fix for unreachable code warning. Oops, I miss when unreachable code was an error. --- src/compiler/scala/tools/nsc/typechecker/Implicits.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala index 193e589470..770aef5d61 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala +++ b/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 -- cgit v1.2.3