diff options
Diffstat (limited to 'src/dotty/tools/dotc/typer/ReTyper.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/ReTyper.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/ReTyper.scala b/src/dotty/tools/dotc/typer/ReTyper.scala index a2d4ebad8..901542f21 100644 --- a/src/dotty/tools/dotc/typer/ReTyper.scala +++ b/src/dotty/tools/dotc/typer/ReTyper.scala @@ -9,6 +9,7 @@ import Decorators._ import typer.ProtoTypes._ import ast.{tpd, untpd} import ast.Trees._ +import scala.util.control.NonFatal /** A version of Typer that keeps all symbols defined and referenced in a * previously typed tree. @@ -91,7 +92,7 @@ class ReTyper extends Typer { override def typedUnadapted(tree: untpd.Tree, pt: Type)(implicit ctx: Context) = try super.typedUnadapted(tree, pt) catch { - case ex: Throwable => + case NonFatal(ex) => println(i"exception while typing $tree of class ${tree.getClass} # ${tree.uniqueId}") throw ex } |