@@ -266,7 +266,7 @@ object Types {
266
266
}
267
267
268
268
/** Is this type exactly Nothing (no vars, aliases, refinements etc allowed)? */
269
- def isNothingType (using Context ): Boolean = this match {
269
+ def isNothing (using Context ): Boolean = this match {
270
270
case tp : TypeRef =>
271
271
tp.name == tpnme.Nothing && (tp.symbol eq defn.NothingClass )
272
272
case _ => false
@@ -2126,7 +2126,7 @@ object Types {
2126
2126
case arg : TypeBounds =>
2127
2127
val v = param.paramVarianceSign
2128
2128
val pbounds = param.paramInfo
2129
- if (v > 0 && pbounds.loBound.dealiasKeepAnnots.isNothingType ) TypeAlias (arg.hiBound & rebase(pbounds.hiBound))
2129
+ if (v > 0 && pbounds.loBound.dealiasKeepAnnots.isNothing ) TypeAlias (arg.hiBound & rebase(pbounds.hiBound))
2130
2130
else if (v < 0 && pbounds.hiBound.dealiasKeepAnnots.isTopType) TypeAlias (arg.loBound | rebase(pbounds.loBound))
2131
2131
else arg recoverable_& rebase(pbounds)
2132
2132
case arg => TypeAlias (arg)
@@ -2289,7 +2289,7 @@ object Types {
2289
2289
if (base.isAnd == variance >= 0 ) tp1 & tp2 else tp1 | tp2
2290
2290
case _ =>
2291
2291
if (pre.termSymbol.is(Package )) argForParam(pre.select(nme.PACKAGE ))
2292
- else if (pre.isNothingType ) pre
2292
+ else if (pre.isNothing ) pre
2293
2293
else NoType
2294
2294
}
2295
2295
}
@@ -2308,7 +2308,7 @@ object Types {
2308
2308
*/
2309
2309
def derivedSelect (prefix : Type )(using Context ): Type =
2310
2310
if (prefix eq this .prefix) this
2311
- else if (prefix.isNothingType ) prefix
2311
+ else if (prefix.isNothing ) prefix
2312
2312
else {
2313
2313
if (isType) {
2314
2314
val res =
@@ -4292,7 +4292,7 @@ object Types {
4292
4292
4293
4293
/** For uninstantiated type variables: Is the lower bound different from Nothing? */
4294
4294
def hasLowerBound (using Context ): Boolean =
4295
- ! ctx.typerState.constraint.entry(origin).loBound.isNothingType
4295
+ ! ctx.typerState.constraint.entry(origin).loBound.isNothing
4296
4296
4297
4297
/** For uninstantiated type variables: Is the upper bound different from Any? */
4298
4298
def hasUpperBound (using Context ): Boolean =
@@ -5297,7 +5297,7 @@ object Types {
5297
5297
case _ =>
5298
5298
def propagate (lo : Type , hi : Type ) =
5299
5299
range(derivedRefinedType(tp, parent, lo), derivedRefinedType(tp, parent, hi))
5300
- if (parent.isNothingType ) parent
5300
+ if (parent.isNothing ) parent
5301
5301
else info match {
5302
5302
case Range (infoLo : TypeBounds , infoHi : TypeBounds ) =>
5303
5303
assert(variance == 0 )
@@ -5390,7 +5390,7 @@ object Types {
5390
5390
case Range (lo, hi) =>
5391
5391
range(tp.derivedAnnotatedType(lo, annot), tp.derivedAnnotatedType(hi, annot))
5392
5392
case _ =>
5393
- if (underlying.isNothingType ) underlying
5393
+ if (underlying.isNothing ) underlying
5394
5394
else tp.derivedAnnotatedType(underlying, annot)
5395
5395
}
5396
5396
override protected def derivedWildcardType (tp : WildcardType , bounds : Type ): WildcardType =
@@ -5638,7 +5638,7 @@ object Types {
5638
5638
else {
5639
5639
seen += tp
5640
5640
tp match {
5641
- case tp if tp.isTopType || tp.isNothingType =>
5641
+ case tp if tp.isTopType || tp.isNothing =>
5642
5642
cs
5643
5643
case tp : AppliedType =>
5644
5644
foldOver(cs + tp.typeSymbol, tp)
0 commit comments