summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-01-20 00:27:53 +0000
committerPaul Phillips <paulp@improving.org>2010-01-20 00:27:53 +0000
commit08013877acb1155fa46398988efaa2cab21f78ae (patch)
treeb037368cce1f0d0a3623e2b0e43d83b3be2d9832 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parent556813ccdf7b3d78ef0a43c90699bb552f8a97fe (diff)
downloadscala-08013877acb1155fa46398988efaa2cab21f78ae.tar.gz
scala-08013877acb1155fa46398988efaa2cab21f78ae.tar.bz2
scala-08013877acb1155fa46398988efaa2cab21f78ae.zip
Made some cosmetic but clarity-increasing chang...
Made some cosmetic but clarity-increasing changes to a few files. Primarily, used corresponds where possible rather than zipped.forall. Added isImplicit and isJava to MethodType so the relevant subtypes could be determined without the hideous isInstanceOf checks. Review by odersky.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index 7b41c7b249..fcc5a3cbf4 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -903,7 +903,7 @@ abstract class RefChecks extends InfoTransform {
val clazz = pat.tpe.typeSymbol;
clazz == seltpe.typeSymbol &&
clazz.isClass && (clazz hasFlag CASE) &&
- ((args, clazz.primaryConstructor.tpe.asSeenFrom(seltpe, clazz).paramTypes).zipped forall isIrrefutable)
+ (args corresponds clazz.primaryConstructor.tpe.asSeenFrom(seltpe, clazz).paramTypes)(isIrrefutable) // @PP: corresponds
case Typed(pat, tpt) =>
seltpe <:< tpt.tpe
case Ident(nme.WILDCARD) =>