File tree 1 file changed +5
-12
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -3361,19 +3361,12 @@ object Types {
3361
3361
3362
3362
// --- FlexibleType -----------------------------------------------------------------
3363
3363
3364
- case class FlexibleType (tp : Type ) extends CachedGroundType with ValueType {
3365
- def hi (using Context ) = {
3366
- this .tp
3367
- }
3368
- def lo (using Context ) = {
3369
- OrNull (this .tp)
3370
- }
3371
- override def show (using Context ) = " FlexibleType(" + tp.show+ " )"
3372
- def underlying (using Context ) : Type = this .tp
3364
+ case class FlexibleType (underlying : Type ) extends CachedGroundType with ValueType {
3365
+ def lo (using Context ): Type = OrNull (underlying)
3366
+ override def show (using Context ) = i " FlexibleType( $underlying) "
3373
3367
def derivedFlexibleType (under : Type )(using Context ): Type =
3374
- if this .tp eq under then this else FlexibleType (under)
3375
- override def computeHash (bs : Binders ): Int = doHash(bs, tp)
3376
- override def toString = " FlexibleType(%s)" .format(tp)
3368
+ if this .underlying eq under then this else FlexibleType (under)
3369
+ override def computeHash (bs : Binders ): Int = doHash(bs, underlying)
3377
3370
override final def baseClasses (using Context ): List [ClassSymbol ] = underlying.baseClasses
3378
3371
}
3379
3372
You can’t perform that action at this time.
0 commit comments