@@ -94,7 +94,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
9494 this += " "
9595 printTypeTree(tpt)
9696 this += " ["
97- printTypeTrees (targs, " , " )
97+ printTypeOrBoundsTrees (targs, " , " )
9898 this += " ]"
9999 if (args.nonEmpty) {
100100 this += " ("
@@ -274,7 +274,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
274274 case Term .TypeApply (fn, args) =>
275275 printTree(fn)
276276 this += " ["
277- printTypeTrees (args, " , " )
277+ printTypeOrBoundsTrees (args, " , " )
278278 this += " ]"
279279
280280 case Term .Super (qual, tptOpt) =>
@@ -454,12 +454,12 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
454454 this
455455 }
456456
457- def printTypeTrees (typesTrees : List [TypeTree ], sep : String ): Buffer = {
458- def printSeparated (list : List [TypeTree ]): Unit = list match {
457+ def printTypeOrBoundsTrees (typesTrees : List [TypeOrBoundsTree ], sep : String ): Buffer = {
458+ def printSeparated (list : List [TypeOrBoundsTree ]): Unit = list match {
459459 case Nil =>
460- case x :: Nil => printTypeTree (x)
460+ case x :: Nil => printTypeOrBoundsTree (x)
461461 case x :: xs =>
462- printTypeTree (x)
462+ printTypeOrBoundsTree (x)
463463 this += sep
464464 printSeparated(xs)
465465 }
@@ -667,7 +667,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
667667
668668 def printTypeOrBoundsTree (tpt : TypeOrBoundsTree ): Buffer = tpt match {
669669 case TypeBoundsTree (lo, hi) =>
670- this += " >: "
670+ this += " _ >: "
671671 printTypeTree(lo)
672672 this += " <: "
673673 printTypeTree(hi)
@@ -726,7 +726,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
726726 case TypeTree .Applied (tpt, args) =>
727727 printTypeTree(tpt)
728728 this += " ["
729- printTypeTrees (args, " , " )
729+ printTypeOrBoundsTrees (args, " , " )
730730 this += " ]"
731731
732732 case TypeTree .Annotated (tpt, annot) =>
0 commit comments