Skip to content

Commit ed6a57e

Browse files
committed
Fix #12267: reset constraint in exploration
1 parent 550317c commit ed6a57e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ object TypeOps:
679679
val childTp = if (child.isTerm) child.termRef else child.typeRef
680680

681681
inContext(ctx.fresh.setExploreTyperState().setFreshGADTBounds) {
682+
ctx.typerState.constraint = OrderingConstraint.empty
682683
instantiateToSubType(childTp, parent).dealias
683684
}
684685
}

0 commit comments

Comments
 (0)