Skip to content

Commit 2fdc581

Browse files
committed
Acoid CyclicReference errors due to check
1 parent 674333a commit 2fdc581

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,8 +1530,8 @@ object Types {
15301530
if (Config.checkTypeRefCycles)
15311531
lastDenotation.info match {
15321532
case TypeBounds(lo, hi) =>
1533-
assert(lo.stripTypeVar.stripAnnots ne this)
1534-
assert(hi.stripTypeVar.stripAnnots ne this)
1533+
assert(lo ne this)
1534+
assert(hi ne this)
15351535
case _ =>
15361536
}
15371537

0 commit comments

Comments
 (0)