File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6035,14 +6035,10 @@ object Types {
60356035 /** A range of possible types between lower bound `lo` and upper bound `hi`.
60366036 * Only used internally in `ApproximatingTypeMap`.
60376037 */
6038- case class Range (lo : Type , hi : Type ) extends UncachedGroundType {
6038+ case class Range (lo : Type , hi : Type ) extends UncachedGroundType :
60396039 assert(! lo.isInstanceOf [Range ])
60406040 assert(! hi.isInstanceOf [Range ])
60416041
6042- override def toText (printer : Printer ): Text =
6043- lo.toText(printer) ~ " .." ~ hi.toText(printer)
6044- }
6045-
60466042 /** Approximate wildcards by their bounds */
60476043 class AvoidWildcardsMap (using Context ) extends ApproximatingTypeMap :
60486044 protected def mapWild (t : WildcardType ) =
Original file line number Diff line number Diff line change @@ -278,6 +278,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
278278 case ex : Throwable => Str (" ..." )
279279 }
280280 " LazyRef(" ~ refTxt ~ " )"
281+ case Range (lo, hi) =>
282+ toText(lo) ~ " .." ~ toText(hi)
281283 case _ =>
282284 tp.fallbackToText(this )
283285 }
You can’t perform that action at this time.
0 commit comments