Skip to content

Commit 4a11252

Browse files
authored
Add back -Ydebug-type-error support (#16567)
2 parents 263eada + e8dd5be commit 4a11252

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: compiler/src/dotty/tools/dotc/report.scala

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ object report:
7979
val fullPos = addInlineds(pos)
8080
ctx.reporter.report(new StickyError(ex.toMessage, fullPos))
8181
if ctx.settings.YdebugError.value then Thread.dumpStack()
82+
if ctx.settings.YdebugTypeError.value then ex.printStackTrace()
8283

8384
def errorOrMigrationWarning(msg: Message, pos: SrcPos, from: SourceVersion)(using Context): Unit =
8485
if sourceVersion.isAtLeast(from) then

0 commit comments

Comments
 (0)