File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ object Periods {
2020 /** Are all base types in the current period guaranteed to be the same as in period `p`? */
2121 def currentHasSameBaseTypesAs (p : Period )(using Context ): Boolean =
2222 val period = ctx.period
23- period == p ||
23+ period.code == p.code ||
2424 period.runId == p.runId &&
2525 unfusedPhases(period.phaseId).sameBaseTypesStartId ==
2626 unfusedPhases(p.phaseId).sameBaseTypesStartId
Original file line number Diff line number Diff line change @@ -2867,7 +2867,7 @@ object SymDenotations {
28672867 }
28682868
28692869 def isValidAt (phase : Phase )(using Context ) =
2870- checkedPeriod == ctx.period ||
2870+ checkedPeriod.code == ctx.period.code ||
28712871 createdAt.runId == ctx.runId &&
28722872 createdAt.phaseId < unfusedPhases.length &&
28732873 sameGroup(unfusedPhases(createdAt.phaseId), phase) &&
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ object Symbols {
103103 /** The current denotation of this symbol */
104104 final def denot (using Context ): SymDenotation = {
105105 util.Stats .record(" Symbol.denot" )
106- if ( checkedPeriod == ctx.period) lastDenot
106+ if checkedPeriod.code == ctx.period.code then lastDenot
107107 else computeDenot(lastDenot)
108108 }
109109
Original file line number Diff line number Diff line change @@ -2266,7 +2266,7 @@ object Types {
22662266 final def symbol (using Context ): Symbol =
22672267 // We can rely on checkedPeriod (unlike in the definition of `denot` below)
22682268 // because SymDenotation#installAfter never changes the symbol
2269- if (checkedPeriod == ctx.period) lastSymbol.asInstanceOf [Symbol ]
2269+ if (checkedPeriod.code == ctx.period.code ) lastSymbol.asInstanceOf [Symbol ]
22702270 else computeSymbol
22712271
22722272 private def computeSymbol (using Context ): Symbol =
You can’t perform that action at this time.
0 commit comments