diff options
author | Paul Phillips <paulp@improving.org> | 2012-01-05 23:33:17 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-02-02 20:25:19 -0800 |
commit | 52e7fdc7efaa4ecfd68f71a51375e1870cc78dcc (patch) | |
tree | a26ba2f812c4a503a5b542bddf503fae33223ee0 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | |
parent | 7b153ed4927c171d1e219a5c1d98096f104cc0fe (diff) | |
download | scala-52e7fdc7efaa4ecfd68f71a51375e1870cc78dcc.tar.gz scala-52e7fdc7efaa4ecfd68f71a51375e1870cc78dcc.tar.bz2 scala-52e7fdc7efaa4ecfd68f71a51375e1870cc78dcc.zip |
Misc optimizations with zip.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala index a6c2f75d5e..fa4664b34f 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -924,9 +924,7 @@ abstract class RefChecks extends InfoTransform with reflect.internal.transform.R } def validateVarianceArgs(tps: List[Type], variance: Int, tparams: List[Symbol]) { - (tps zip tparams) foreach { - case (tp, tparam) => validateVariance(tp, variance * tparam.variance) - } + foreach2(tps, tparams)((tp, tparam) => validateVariance(tp, variance * tparam.variance)) } validateVariance(base.info, CoVariance) |