File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
103
103
(refinementNameString(rt) ~ toTextRHS(rt.refinedInfo)).close
104
104
105
105
protected def argText (arg : Type ): Text = homogenizeArg(arg) match {
106
- case arg : TypeBounds => " _ " ~ toText(arg)
106
+ case arg : TypeBounds => " ? " ~ toText(arg)
107
107
case arg => toText(arg)
108
108
}
109
109
@@ -505,7 +505,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
505
505
def toText [T >: Untyped ](tree : Tree [T ]): Text = {
506
506
def toTextElem (elem : Any ): Text = elem match {
507
507
case elem : Showable => elem.toText(this )
508
- case elem : List [_ ] => " List(" ~ Text (elem map toTextElem, " ," ) ~ " )"
508
+ case elem : List [? ] => " List(" ~ Text (elem map toTextElem, " ," ) ~ " )"
509
509
case elem => elem.toString
510
510
}
511
511
val nodeName = tree.productPrefix
Original file line number Diff line number Diff line change @@ -305,10 +305,10 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
305
305
else " "
306
306
307
307
def argText (arg : Tree ): Text = arg match {
308
- case arg : TypeBoundsTree => " _ " ~ toTextGlobal(arg)
308
+ case arg : TypeBoundsTree => " ? " ~ toTextGlobal(arg)
309
309
case arg : TypeTree =>
310
310
arg.typeOpt match {
311
- case tp : TypeBounds => " _ " ~ toTextGlobal(arg)
311
+ case tp : TypeBounds => " ? " ~ toTextGlobal(arg)
312
312
case _ => toTextGlobal(arg)
313
313
}
314
314
case _ => toTextGlobal(arg)
You can’t perform that action at this time.
0 commit comments