diff options
author | Paul Phillips <paulp@improving.org> | 2013-05-16 21:42:16 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-05-16 21:42:16 -0700 |
commit | b08c135ce243626740d6a561fd183470204463b0 (patch) | |
tree | 0d6827cd3358faebd662a81b464a51a22be47179 /src | |
parent | 01716c8d8553a027cb0583f90409652128286463 (diff) | |
download | scala-b08c135ce243626740d6a561fd183470204463b0.tar.gz scala-b08c135ce243626740d6a561fd183470204463b0.tar.bz2 scala-b08c135ce243626740d6a561fd183470204463b0.zip |
Fix for unreachable code warning.
Oops, I miss when unreachable code was an error.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Implicits.scala | 3 |
1 files changed, 1 insertions, 2 deletions
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 |