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 @@ -3402,19 +3402,12 @@ object Types {
3402
3402
3403
3403
// --- FlexibleType -----------------------------------------------------------------
3404
3404
3405
- case class FlexibleType (tp : Type ) extends CachedGroundType with ValueType {
3406
- def hi (using Context ) = {
3407
- this .tp
3408
- }
3409
- def lo (using Context ) = {
3410
- OrNull (this .tp)
3411
- }
3412
- override def show (using Context ) = " FlexibleType(" + tp.show+ " )"
3413
- def underlying (using Context ) : Type = this .tp
3405
+ case class FlexibleType (underlying : Type ) extends CachedGroundType with ValueType {
3406
+ def lo (using Context ): Type = OrNull (underlying)
3407
+ override def show (using Context ) = i " FlexibleType( $underlying) "
3414
3408
def derivedFlexibleType (under : Type )(using Context ): Type =
3415
- if this .tp eq under then this else FlexibleType (under)
3416
- override def computeHash (bs : Binders ): Int = doHash(bs, tp)
3417
- override def toString = " FlexibleType(%s)" .format(tp)
3409
+ if this .underlying eq under then this else FlexibleType (under)
3410
+ override def computeHash (bs : Binders ): Int = doHash(bs, underlying)
3418
3411
override final def baseClasses (using Context ): List [ClassSymbol ] = underlying.baseClasses
3419
3412
}
3420
3413
You can’t perform that action at this time.
0 commit comments