summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2009-03-02 23:13:13 +0000
committerIulian Dragos <jaguarul@gmail.com>2009-03-02 23:13:13 +0000
commit77be5533c697b8c617a2dba3f5a27312f0350c75 (patch)
treed3ec1d9117123682fade50aee77763b840f522b9 /src/compiler
parentddecab441fd5e7e7ea487b01d02a7f17bcd7747a (diff)
downloadscala-77be5533c697b8c617a2dba3f5a27312f0350c75.tar.gz
scala-77be5533c697b8c617a2dba3f5a27312f0350c75.tar.bz2
scala-77be5533c697b8c617a2dba3f5a27312f0350c75.zip
Removed call to normalize, which fixes crashes ...
Removed call to normalize, which fixes crashes in the optimiser
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala b/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala
index c7defb054f..e9571741f6 100644
--- a/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala
+++ b/src/compiler/scala/tools/nsc/backend/icode/TypeKinds.scala
@@ -411,7 +411,7 @@ trait TypeKinds { self: ICodes =>
/** Return the TypeKind of the given type */
- def toTypeKind(t: Type): TypeKind = t.normalize match {
+ def toTypeKind(t: Type): TypeKind = t match {
case ThisType(sym) =>
if (sym == definitions.ArrayClass)
AnyRefReference
@@ -450,7 +450,8 @@ trait TypeKinds { self: ICodes =>
// REFERENCE(definitions.ObjectClass)
case _ =>
- abort("Unknown type: " + t)
+ abort("Unknown type: " + t + ", " + t.normalize + "[" + t.getClass + ", " + t.normalize.getClass + "]" +
+ " TypeRef? " + t.isInstanceOf[TypeRef] + ", " + t.normalize.isInstanceOf[TypeRef])
}
/** Return the type kind of a class, possibly an array type.