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