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 @@ -6045,14 +6045,10 @@ object Types {
6045
6045
/** A range of possible types between lower bound `lo` and upper bound `hi`.
6046
6046
* Only used internally in `ApproximatingTypeMap`.
6047
6047
*/
6048
- case class Range (lo : Type , hi : Type ) extends UncachedGroundType {
6048
+ case class Range (lo : Type , hi : Type ) extends UncachedGroundType :
6049
6049
assert(! lo.isInstanceOf [Range ])
6050
6050
assert(! hi.isInstanceOf [Range ])
6051
6051
6052
- override def toText (printer : Printer ): Text =
6053
- lo.toText(printer) ~ " .." ~ hi.toText(printer)
6054
- }
6055
-
6056
6052
/** Approximate wildcards by their bounds */
6057
6053
class AvoidWildcardsMap (using Context ) extends ApproximatingTypeMap :
6058
6054
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 {
278
278
case ex : Throwable => Str (" ..." )
279
279
}
280
280
" LazyRef(" ~ refTxt ~ " )"
281
+ case Range (lo, hi) =>
282
+ toText(lo) ~ " .." ~ toText(hi)
281
283
case _ =>
282
284
tp.fallbackToText(this )
283
285
}
You can’t perform that action at this time.
0 commit comments