summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-10-21 20:57:27 +0000
committerPaul Phillips <paulp@improving.org>2009-10-21 20:57:27 +0000
commit7349476e5cf7984acf40055cb55d78cbaed41043 (patch)
tree527229fd0cdab2451fd9feabfcdef2730f9ec453 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parent322b823276a3f40db95bb3306c842021e77572df (diff)
downloadscala-7349476e5cf7984acf40055cb55d78cbaed41043.tar.gz
scala-7349476e5cf7984acf40055cb55d78cbaed41043.tar.bz2
scala-7349476e5cf7984acf40055cb55d78cbaed41043.zip
A selection of cleanups stemming from recent in...
A selection of cleanups stemming from recent investigations.
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 5b1ec93ffb..c619f08ce3 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -374,7 +374,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)
if ((member hasFlag (OVERRIDE | ABSOVERRIDE)) &&
- (clazz.info.baseClasses.tail forall {
+ (clazz.ancestors forall {
bc => member.matchingSymbol(bc, clazz.thisType) == NoSymbol
})) {
// for (bc <- clazz.info.baseClasses.tail) Console.println("" + bc + " has " + bc.info.decl(member.name) + ":" + bc.info.decl(member.name).tpe);//DEBUG