summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-06-25 21:24:35 +0000
committerPaul Phillips <paulp@improving.org>2011-06-25 21:24:35 +0000
commit7b7b242299fa4f8e8f201aefc41eb4270babe398 (patch)
tree1eb7ef30ed42610314d8302a195bb4de3a01a565 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parentd8912db1436a42474ddd45007569246ee2af9000 (diff)
downloadscala-7b7b242299fa4f8e8f201aefc41eb4270babe398.tar.gz
scala-7b7b242299fa4f8e8f201aefc41eb4270babe398.tar.bz2
scala-7b7b242299fa4f8e8f201aefc41eb4270babe398.zip
Cosmetic removal of redundant toList call on it...
Cosmetic removal of redundant toList call on iterable target, no review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index e760164c7e..40e3aea1d7 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -632,7 +632,7 @@ abstract class RefChecks extends InfoTransform {
}
// 4. Check that every defined member with an `override` modifier overrides some other member.
- for (member <- clazz.info.decls.toList)
+ for (member <- clazz.info.decls)
if ((member hasFlag (OVERRIDE | ABSOVERRIDE)) &&
!(clazz.thisType.baseClasses exists (hasMatchingSym(_, member)))) {
// for (bc <- clazz.info.baseClasses.tail) Console.println("" + bc + " has " + bc.info.decl(member.name) + ":" + bc.info.decl(member.name).tpe);//DEBUG
@@ -782,7 +782,7 @@ abstract class RefChecks extends InfoTransform {
validateVariances(parents, variance)
case RefinedType(parents, decls) =>
validateVariances(parents, variance)
- for (sym <- decls.toList)
+ for (sym <- decls)
validateVariance(sym.info, if (sym.isAliasType) NoVariance else variance)
case TypeBounds(lo, hi) =>
validateVariance(lo, -variance)