@@ -323,7 +323,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
323
323
def selectorText (sel : Tree ): Text = sel match {
324
324
case Thicket (l :: r :: Nil ) => toTextGlobal(l) ~ " => " ~ toTextGlobal(r)
325
325
case _ : Ident => toTextGlobal(sel)
326
- case TypeBoundsTree (_, tpt) => " for " ~ toTextGlobal(tpt)
326
+ case TypeBoundsTree (_, tpt) => " _: " ~ toTextGlobal(tpt)
327
327
}
328
328
val selectorsText : Text = selectors match {
329
329
case id :: Nil => toText(id)
@@ -334,7 +334,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
334
334
}
335
335
336
336
tree match {
337
- case id : Trees .SearchFailureIdent [_ ] =>
337
+ case id : Trees .SearchFailureIdent [? ] =>
338
338
tree.typeOpt match {
339
339
case reason : Implicits .SearchFailureType =>
340
340
toText(id.name) ~ " implicitly[" ~ toText(reason.clarify(reason.expectedType)) ~ " ]"
@@ -403,7 +403,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
403
403
case block : Block =>
404
404
blockToText(block)
405
405
case If (cond, thenp, elsep) =>
406
- val isInline = tree.isInstanceOf [Trees .InlineIf [_ ]]
406
+ val isInline = tree.isInstanceOf [Trees .InlineIf [? ]]
407
407
changePrec(GlobalPrec ) {
408
408
keywordStr(if (isInline) " inline if " else " if " ) ~
409
409
toText(cond) ~ (keywordText(" then" ) provided ! cond.isInstanceOf [Parens ]) ~~
@@ -413,7 +413,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
413
413
" closure(" ~ (toTextGlobal(env, " , " ) ~ " | " provided env.nonEmpty) ~
414
414
toTextGlobal(ref) ~ (" :" ~ toText(target) provided ! target.isEmpty) ~ " )"
415
415
case Match (sel, cases) =>
416
- val isInline = tree.isInstanceOf [Trees .InlineMatch [_ ]]
416
+ val isInline = tree.isInstanceOf [Trees .InlineMatch [? ]]
417
417
if (sel.isEmpty && ! isInline) blockText(cases)
418
418
else changePrec(GlobalPrec ) {
419
419
val selTxt : Text =
@@ -637,7 +637,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
637
637
// with the original types before they are rewritten, which causes a discrepancy.
638
638
639
639
def suppressPositions = tree match {
640
- case _ : WithoutTypeOrPos [_ ] | _ : TypeTree => true // TypeTrees never have an interesting position
640
+ case _ : WithoutTypeOrPos [? ] | _ : TypeTree => true // TypeTrees never have an interesting position
641
641
case _ => false
642
642
}
643
643
@@ -730,7 +730,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
730
730
}
731
731
else toText(tree.name) ~ idText(tree)
732
732
733
- private def toTextOwner (tree : Tree [_ ]) =
733
+ private def toTextOwner (tree : Tree [? ]) =
734
734
" [owner = " ~ tree.symbol.maybeOwner.show ~ " ]" provided ctx.settings.YprintDebugOwners .value
735
735
736
736
protected def dclTextOr [T >: Untyped ](tree : Tree [T ])(treeText : => Text ): Text =
0 commit comments