We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a7a4687 + 6270225 commit ad9cf71Copy full SHA for ad9cf71
compiler/src/dotty/tools/dotc/printing/Formatting.scala
@@ -74,6 +74,9 @@ object Formatting {
74
given [X: Show]: Show[Seq[X]] with
75
def show(x: Seq[X]) = CtxShow(x.map(toStr))
76
77
+ given Show[Seq[Nothing]] with
78
+ def show(x: Seq[Nothing]) = CtxShow(x)
79
+
80
given [K: Show, V: Show]: Show[Map[K, V]] with
81
def show(x: Map[K, V]) =
82
CtxShow(x.map((k, v) => s"${toStr(k)} => ${toStr(v)}"))
0 commit comments