diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-26 13:46:42 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-26 15:39:04 -0700 |
commit | bcc82808ecf056affecf11b14f3ad850ad21d773 (patch) | |
tree | 6ef9df7e8b5dff67c7c0bf055d042f81c5c2ca2d /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala | |
parent | e4b8c063ed01db93c2b7a87b673c7991a44f04df (diff) | |
download | scala-bcc82808ecf056affecf11b14f3ad850ad21d773.tar.gz scala-bcc82808ecf056affecf11b14f3ad850ad21d773.tar.bz2 scala-bcc82808ecf056affecf11b14f3ad850ad21d773.zip |
Handled some of our new exhaustiveness warnings.
Who could have suspected it would actually be right most of the time?
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, 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 3373878beb..6d9c9c4ce8 100644 --- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala +++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala @@ -807,9 +807,9 @@ abstract class RefChecks extends InfoTransform with reflect.internal.transform.R for (i <- 0 until seenTypes.length) { val baseClass = clazz.info.baseTypeSeq(i).typeSymbol seenTypes(i) match { - case List() => + case Nil => println("??? base "+baseClass+" not found in basetypes of "+clazz) - case List(_) => + case _ :: Nil => ;// OK case tp1 :: tp2 :: _ => unit.error(clazz.pos, "illegal inheritance;\n " + clazz + |