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:
parent
87c319cc2c
commit
40687f1314
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue