Skip to content

Commit 0528a7a

Browse files
committed
Fix printing of extension methods
1 parent e25e13d commit 0528a7a

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
@@ -719,7 +719,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
719719
val (leading, paramss) =
720720
if (isExtension && vparamss.nonEmpty) (paramsText(vparamss.head) ~ " " ~ txt, vparamss.tail)
721721
else (txt, vparamss)
722-
(txt /: paramss)((txt, params) =>
722+
(leading /: paramss)((txt, params) =>
723723
txt ~
724724
(Str(" given ") provided params.nonEmpty && params.head.mods.is(Given)) ~
725725
paramsText(params))

0 commit comments

Comments
 (0)