Skip to content

Commit 4891858

Browse files
authored
Implement Show[Seq[Nothing]] (#21435)
2 parents f95a131 + 22ea677 commit 4891858

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/dotty/tools/dotc/printing/Formatting.scala

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ object Formatting {
7676
given [X: Show]: Show[Seq[X]] with
7777
def show(x: Seq[X]) = CtxShow(x.map(toStr))
7878

79+
given Show[Seq[Nothing]] with
80+
def show(x: Seq[Nothing]) = CtxShow(x)
81+
7982
given [K: Show, V: Show]: Show[Map[K, V]] with
8083
def show(x: Map[K, V]) =
8184
CtxShow(x.map((k, v) => s"${toStr(k)} => ${toStr(v)}"))

0 commit comments

Comments
 (0)