Skip to content

Commit cb25980

Browse files
committed
Fix #12267: reset constraint in exploration
1 parent afbe02d commit cb25980

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
@@ -672,6 +672,7 @@ object TypeOps:
672672
val childTp = if (child.isTerm) child.termRef else child.typeRef
673673

674674
inContext(ctx.fresh.setExploreTyperState().setFreshGADTBounds) {
675+
ctx.typerState.constraint = OrderingConstraint.empty
675676
instantiateToSubType(childTp, parent).dealias
676677
}
677678
}

0 commit comments

Comments
 (0)