diff options
author | Paul Phillips <paulp@improving.org> | 2009-10-21 20:57:27 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-10-21 20:57:27 +0000 |
commit | 7349476e5cf7984acf40055cb55d78cbaed41043 (patch) | |
tree | 527229fd0cdab2451fd9feabfcdef2730f9ec453 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | |
parent | 322b823276a3f40db95bb3306c842021e77572df (diff) | |
download | scala-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.scala | 2 |
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 |