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 d6b9992 commit f25a60fCopy full SHA for f25a60f
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -97,7 +97,7 @@ object Types {
97
}
98
99
/** Is this type different from NoType? */
100
- def exists: Boolean = true
+ final def exists: Boolean = !this.eq(NoType)
101
102
/** This type, if it exists, otherwise `that` type */
103
def orElse(that: => Type) = if (exists) this else that
@@ -3741,7 +3741,6 @@ object Types {
3741
3742
/** Sentinel for "missing type" */
3743
@sharable case object NoType extends CachedGroundType {
3744
- override def exists = false
3745
override def computeHash(bs: Binders) = hashSeed
3746
3747
0 commit comments