File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -3408,19 +3408,12 @@ object Types {
3408
3408
3409
3409
// --- FlexibleType -----------------------------------------------------------------
3410
3410
3411
- case class FlexibleType (tp : Type ) extends CachedGroundType with ValueType {
3412
- def hi (using Context ) = {
3413
- this .tp
3414
- }
3415
- def lo (using Context ) = {
3416
- OrNull (this .tp)
3417
- }
3418
- override def show (using Context ) = " FlexibleType(" + tp.show+ " )"
3419
- def underlying (using Context ) : Type = this .tp
3411
+ case class FlexibleType (underlying : Type ) extends CachedGroundType with ValueType {
3412
+ def lo (using Context ): Type = OrNull (underlying)
3413
+ override def show (using Context ) = i " FlexibleType( $underlying) "
3420
3414
def derivedFlexibleType (under : Type )(using Context ): Type =
3421
- if this .tp eq under then this else FlexibleType (under)
3422
- override def computeHash (bs : Binders ): Int = doHash(bs, tp)
3423
- override def toString = " FlexibleType(%s)" .format(tp)
3415
+ if this .underlying eq under then this else FlexibleType (under)
3416
+ override def computeHash (bs : Binders ): Int = doHash(bs, underlying)
3424
3417
override final def baseClasses (using Context ): List [ClassSymbol ] = underlying.baseClasses
3425
3418
}
3426
3419
You can’t perform that action at this time.
0 commit comments