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 1b14a6b commit 1832dc2Copy full SHA for 1832dc2
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -3279,7 +3279,7 @@ object Types {
3279
3280
def isGround(acc: TypeAccumulator[Boolean])(implicit ctx: Context): Boolean = {
3281
if (!isGroundKnown) {
3282
- isGroundCache = acc.foldOver(false, this)
+ isGroundCache = acc.foldOver(true, this)
3283
isGroundKnown = true
3284
}
3285
isGroundCache
@@ -4797,7 +4797,7 @@ object Types {
4797
4798
4799
class isGroundAccumulator(implicit ctx: Context) extends TypeAccumulator[Boolean] {
4800
- def apply(x: Boolean, tp: Type) = x || {
+ def apply(x: Boolean, tp: Type) = x && {
4801
tp match {
4802
case _: TypeParamRef => false
4803
case tp: TypeVar => apply(x, tp.underlying)
0 commit comments