File tree 2 files changed +1
-3
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ class TypeComparer(initctx: Context) extends ConstraintHandling[AbsentContext] w
212
212
// be careful not to get into an infinite recursion. If recursion count
213
213
// exceeds `DerefLimit`, approximate with `t` instead.
214
214
derefCount += 1
215
- if t.pending || derefCount >= DerefLimit then t
215
+ if t.evaluating || derefCount >= DerefLimit then t
216
216
else try mapOver(t.ref) finally derefCount -= 1
217
217
case tp : TypeVar =>
218
218
tp
Original file line number Diff line number Diff line change @@ -2578,8 +2578,6 @@ object Types {
2578
2578
private var myRef : Type = null
2579
2579
private var computed = false
2580
2580
2581
- def pending (using Context ): Boolean = computed && myRef == null
2582
-
2583
2581
def ref (implicit ctx : Context ): Type =
2584
2582
if computed then
2585
2583
if myRef == null then
You can’t perform that action at this time.
0 commit comments