Skip to content

Commit a50963e

Browse files
committed
Alternative fix
1 parent d3331ee commit a50963e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/Run.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ class Run(comp: Compiler, ictx: Context) extends ImplicitRunInfo with Constraint
202202
Stats.trackTime(s"$phase ms ") {
203203
val start = System.currentTimeMillis
204204
val profileBefore = profiler.beforePhase(phase)
205-
ctx.typerState.constraint = OrderingConstraint.empty
206205
units = phase.runOn(units)
207206
profiler.afterPhase(phase, profileBefore)
208207
if (ctx.settings.Xprint.value.containsPhase(phase))

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4537,7 +4537,7 @@ object Types {
45374537

45384538
override def tryNormalize(using Context): Type = reduced.normalized
45394539

4540-
def reduced(using Context): Type = {
4540+
def reduced(using Context): Type = inContext(ctx.fresh.setExploreTyperState()) {
45414541

45424542
def contextInfo(tp: Type): Type = tp match {
45434543
case tp: TypeParamRef =>

0 commit comments

Comments
 (0)