Fixed bug contribution #176

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@8366 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
mihaylov 2006-08-14 12:14:04 +00:00
parent 87c319cc2c
commit 40687f1314
1 changed files with 1 additions and 2 deletions

View File

@ -136,8 +136,7 @@ trait TypeKinds requires ICodes {
case object BYTE extends TypeKind {
override def maxType(other: TypeKind): TypeKind =
other match {
case INT => INT;
case BYTE | SHORT | INT | LONG | FLOAT | DOUBLE => other;
case BYTE | SHORT | CHAR | INT | LONG | FLOAT | DOUBLE => other;
case _ => abort("Uncomparbale type kinds: BYTE with " + other);
}
}