Skip to content

Commit 522a51c

Browse files
committed
Formatting: Auto-show lists
1 parent 73cc569 commit 522a51c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ object Formatting {
106106
val sep = StringContext.processEscapes(rawsep)
107107
if (rest.nonEmpty) (arg.map(showArg).mkString(sep), rest.tail)
108108
else (arg, suffix)
109+
case arg: Seq[?] =>
110+
(arg.map(showArg).mkString("[", ", ", "]"), suffix)
109111
case _ =>
110112
(showArg(arg), suffix)
111113
}

0 commit comments

Comments
 (0)