Skip to content

Commit 006ae3c

Browse files
committed
Fix printing of extension methods
1 parent c3ee298 commit 006ae3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
709709
val (leading, paramss) =
710710
if (isExtension && vparamss.nonEmpty) (paramsText(vparamss.head) ~ " " ~ txt, vparamss.tail)
711711
else (txt, vparamss)
712-
(txt /: paramss)((txt, params) =>
712+
(leading /: paramss)((txt, params) =>
713713
txt ~
714714
(Str(" given ") provided params.nonEmpty && params.head.mods.is(Given)) ~
715715
paramsText(params))

0 commit comments

Comments
 (0)