Twist to make crashes more robust :-) (by avoiding exceptions that get raised when printing debug output in erasure).

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25588 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
odersky 2011-08-30 16:43:01 +00:00
parent 3e8aa495b1
commit a484db70b7
1 changed files with 2 additions and 1 deletions

View File

@ -604,7 +604,8 @@ abstract class Erasure extends AddInterfaces
abort()
case ex: Exception =>
//if (settings.debug.value)
Console.println("exception when typing " + tree);
try Console.println("exception when typing " + tree)
finally throw ex
throw ex
}
def adaptCase(cdef: CaseDef): CaseDef = {