diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index de86bc9948..86ce75eca6 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -642,7 +642,7 @@ trait Typers requires Analyzer { inferConstructorInstance(tree1, clazz.typeParams, widen(pt)) } catch { case tpe : TypeError => throw tpe - case t : Exception + case t : Exception => logError("CONTEXT: " + (tree.pos).dbgString, t) throw t } @@ -2624,7 +2624,7 @@ trait Typers requires Analyzer { //Console.println("caught "+ex+" in typed");//DEBUG reportTypeError(tree.pos, ex) setError(tree) - case ex: Exception + case ex: Exception => // if (settings.debug.value) // @M causes cyclic reference error // Console.println("exception when typing "+tree+", pt = "+pt) if ((context ne null) && (context.unit ne null) && |