From 7072aa92c29bc3f1a0dd45970ca7f597216765fb Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 14 Apr 2022 13:21:42 +0200 Subject: [PATCH] Provide `Show[Throwable]` Fixes #14938 --- compiler/src/dotty/tools/dotc/printing/Formatting.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/printing/Formatting.scala b/compiler/src/dotty/tools/dotc/printing/Formatting.scala index 0cef7fd3e833..e3f81adeee8a 100644 --- a/compiler/src/dotty/tools/dotc/printing/Formatting.scala +++ b/compiler/src/dotty/tools/dotc/printing/Formatting.scala @@ -66,7 +66,7 @@ object Formatting { given Show[Boolean] = ShowAny given Show[String] = ShowAny given Show[Class[?]] = ShowAny - given Show[Exception] = ShowAny + given Show[Throwable] = ShowAny given Show[StringBuffer] = ShowAny given Show[CompilationUnit] = ShowAny given Show[Phases.Phase] = ShowAny