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 fd2a03e commit 8e119efCopy full SHA for 8e119ef
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -2304,7 +2304,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
2304
Stats.record("cache same type")
2305
sames = new util.EqHashMap()
2306
val res =
2307
- try isSubType(tp1, tp2) && isSubType(tp2, tp1)
+ try rollbackConstraintsUnless(isSubType(tp1, tp2) && isSubType(tp2, tp1))
2308
finally
2309
sameLevel -= 1
2310
sames = savedSames
0 commit comments