File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -389,8 +389,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
389
389
keywordStr(" ${" ) ~ toTextGlobal(args, " , " ) ~ keywordStr(" }" )
390
390
else
391
391
toTextLocal(fun)
392
+ ~ (" ." ~ keywordText(" with" )).provided(app.isGivenApply && ! homogenizedView)
392
393
~ " ("
393
- ~ keywordText(" given " ).provided(app.isGivenApply && ! homogenizedView)
394
394
~ toTextGlobal(args, " , " )
395
395
~ " )"
396
396
case tree : TypeApply =>
@@ -772,10 +772,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
772
772
}
773
773
774
774
private def paramsText [T >: Untyped ](params : List [ValDef [T ]]) =
775
- " ("
776
- ~ keywordText(" given " ).provided(params.nonEmpty && params.head.mods.is(Given ))
777
- ~ toText(params, " , " )
778
- ~ " )"
775
+ keywordText(" with " ).provided(params.nonEmpty && params.head.mods.is(Given ))
776
+ ~ " (" ~ toText(params, " , " ) ~ " )"
779
777
780
778
protected def defDefToText [T >: Untyped ](tree : DefDef [T ]): Text = {
781
779
import untpd .{modsDeco => _ }
You can’t perform that action at this time.
0 commit comments