Skip to content

Commit 55e2520

Browse files
committed
Acoid CyclicReference errors due to check
1 parent 0295cc4 commit 55e2520

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
@@ -1518,8 +1518,8 @@ object Types {
15181518
if (Config.checkTypeRefCycles)
15191519
lastDenotation.info match {
15201520
case TypeBounds(lo, hi) =>
1521-
assert(lo.stripTypeVar.stripAnnots ne this)
1522-
assert(hi.stripTypeVar.stripAnnots ne this)
1521+
assert(lo ne this)
1522+
assert(hi ne this)
15231523
case _ =>
15241524
}
15251525

0 commit comments

Comments
 (0)