File tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc 2 files changed +3
-3
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)
393
392
~ " ("
393
+ ~ Str (" using " ).provided(app.isGivenApply && ! homogenizedView)
394
394
~ toTextGlobal(args, " , " )
395
395
~ " )"
396
396
case tree : TypeApply =>
Original file line number Diff line number Diff line change @@ -2663,9 +2663,9 @@ class Typer extends Namer
2663
2663
// coming from context bounds. Issue a warning instead and offer a patch.
2664
2664
ctx.migrationWarning(
2665
2665
em """ Context bounds will map to context parameters.
2666
- |A `with ` clause is needed to pass explicit arguments to them.
2666
+ |A `using ` clause is needed to pass explicit arguments to them.
2667
2667
|This code can be rewritten automatically using -rewrite """ , tree.sourcePos)
2668
- patch(Span (tree. span.end ), " .with " )
2668
+ patch(Span (pt.args.head. span.start ), " using " )
2669
2669
tree
2670
2670
else
2671
2671
adaptNoArgs(wtp) // insert arguments implicitly
You can’t perform that action at this time.
0 commit comments