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 {
6035
6035
/** A range of possible types between lower bound `lo` and upper bound `hi`.
6036
6036
* Only used internally in `ApproximatingTypeMap`.
6037
6037
*/
6038
- case class Range (lo : Type , hi : Type ) extends UncachedGroundType {
6038
+ case class Range (lo : Type , hi : Type ) extends UncachedGroundType :
6039
6039
assert(! lo.isInstanceOf [Range ])
6040
6040
assert(! hi.isInstanceOf [Range ])
6041
6041
6042
- override def toText (printer : Printer ): Text =
6043
- lo.toText(printer) ~ " .." ~ hi.toText(printer)
6044
- }
6045
-
6046
6042
/** Approximate wildcards by their bounds */
6047
6043
class AvoidWildcardsMap (using Context ) extends ApproximatingTypeMap :
6048
6044
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