Skip to content

Commit 556c762

Browse files
committed
Fix StringContext exception
1 parent 26abe45 commit 556c762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/printing/SyntaxHighlighting.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ object SyntaxHighlighting {
1212

1313
implicit class SyntaxFormatting(val sc: StringContext) extends AnyVal {
1414
def hl(args: Any*)(implicit ctx: Context): String =
15-
if (ctx.settings.color.value == "never") sc.s(args)
15+
if (ctx.settings.color.value == "never") sc.s(args: _*)
1616
else sc.s(args.map(x => new String(apply(x.toString).toArray)): _*)
1717
}
1818

0 commit comments

Comments
 (0)