From 1a77a3b4ce69129f4be56610bafc4f0a6593fb0a Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Fri, 9 Apr 2010 15:43:52 +0000 Subject: Brought back stack traces in TypeError. This is essential when debugging any transformer. Review by extempore. --- src/compiler/scala/tools/nsc/symtab/Types.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/scala/tools/nsc/symtab/Types.scala b/src/compiler/scala/tools/nsc/symtab/Types.scala index ff49886e80..2cd690fbbf 100644 --- a/src/compiler/scala/tools/nsc/symtab/Types.scala +++ b/src/compiler/scala/tools/nsc/symtab/Types.scala @@ -5159,7 +5159,7 @@ A type's typeSymbol should never be inspected directly. // Errors and Diagnostics ----------------------------------------------------- /** A throwable signalling a type error */ - class TypeError(var pos: Position, val msg: String) extends Throwable(msg) with ControlThrowable { + class TypeError(var pos: Position, val msg: String) extends Throwable(msg) { def this(msg: String) = this(NoPosition, msg) } -- cgit v1.2.3