Skip to content

Commit c87bd05

Browse files
committed
Formatting: Auto-show lists
1 parent b636633 commit c87bd05

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
@@ -99,6 +99,8 @@ object Formatting {
9999
val sep = StringContext.processEscapes(rawsep)
100100
if (rest.nonEmpty) (arg.map(showArg).mkString(sep), rest.tail)
101101
else (arg, suffix)
102+
case arg: Seq[?] =>
103+
(arg.map(showArg).mkString("[", ", ", "]"), suffix)
102104
case _ =>
103105
(showArg(arg), suffix)
104106
}

0 commit comments

Comments
 (0)