From e8dd5be205a3489c190a3998842876741927d1f9 Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Wed, 21 Dec 2022 15:16:49 +0000 Subject: [PATCH] Add back -Ydebug-type-error support --- compiler/src/dotty/tools/dotc/report.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/src/dotty/tools/dotc/report.scala b/compiler/src/dotty/tools/dotc/report.scala index fb2aa3863554..c92fbe5daa56 100644 --- a/compiler/src/dotty/tools/dotc/report.scala +++ b/compiler/src/dotty/tools/dotc/report.scala @@ -79,6 +79,7 @@ object report: val fullPos = addInlineds(pos) ctx.reporter.report(new StickyError(ex.toMessage, fullPos)) if ctx.settings.YdebugError.value then Thread.dumpStack() + if ctx.settings.YdebugTypeError.value then ex.printStackTrace() def errorOrMigrationWarning(msg: Message, pos: SrcPos, from: SourceVersion)(using Context): Unit = if sourceVersion.isAtLeast(from) then