diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-05-16 23:55:33 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-05-16 23:55:33 -0700 |
commit | 988e27adf95ba5177603b52c52cbae180d577b1a (patch) | |
tree | 0d6827cd3358faebd662a81b464a51a22be47179 /src | |
parent | 01716c8d8553a027cb0583f90409652128286463 (diff) | |
parent | b08c135ce243626740d6a561fd183470204463b0 (diff) | |
download | scala-988e27adf95ba5177603b52c52cbae180d577b1a.tar.gz scala-988e27adf95ba5177603b52c52cbae180d577b1a.tar.bz2 scala-988e27adf95ba5177603b52c52cbae180d577b1a.zip |
Merge pull request #2547 from paulp/issue/bogus-warning
Fix for unreachable code warning.
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 |