diff options
author | Martin Odersky <odersky@gmail.com> | 2012-08-14 20:17:09 +0200 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-08-20 08:10:50 +0100 |
commit | 1a6a9b4c75c5a8835ab1ed42a9e0269cf4bc2fe7 (patch) | |
tree | c663c62915d8432038e59da24e3c1d9669c80039 /src/compiler/scala/tools/nsc/typechecker/Implicits.scala | |
parent | cf9b7ae0867f594aba39984ac732fbd26ed12f51 (diff) | |
download | scala-1a6a9b4c75c5a8835ab1ed42a9e0269cf4bc2fe7.tar.gz scala-1a6a9b4c75c5a8835ab1ed42a9e0269cf4bc2fe7.tar.bz2 scala-1a6a9b4c75c5a8835ab1ed42a9e0269cf4bc2fe7.zip |
More method hoisting.
Also avoided systematically to map (_.tpe) on parameters in favor of
lazy val paramTypes.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Implicits.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Implicits.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala index a34fc71b8f..f7fb17dee6 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala @@ -181,8 +181,8 @@ trait Implicits { containsError(restpe) case NullaryMethodType(restpe) => containsError(restpe) - case MethodType(params, restpe) => - params.exists(_.tpe.isError) || containsError(restpe) + case mt @ MethodType(_, restpe) => + (mt.paramTypes exists typeIsError) || containsError(restpe) case _ => tp.isError } |