We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9775736 commit 2fa72baCopy full SHA for 2fa72ba
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -132,7 +132,7 @@ object Types {
132
}
133
134
/** Is this type different from NoType? */
135
- def exists: Boolean = true
+ final def exists: Boolean = !this.eq(NoType)
136
137
/** This type, if it exists, otherwise `that` type */
138
def orElse(that: => Type) = if (exists) this else that
@@ -3708,7 +3708,6 @@ object Types {
3708
3709
/** Sentinel for "missing type" */
3710
@sharable case object NoType extends CachedGroundType {
3711
- override def exists = false
3712
override def computeHash(bs: Binders) = hashSeed
3713
3714
0 commit comments