File tree 4 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/core
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ object Periods {
20
20
/** Are all base types in the current period guaranteed to be the same as in period `p`? */
21
21
def currentHasSameBaseTypesAs (p : Period )(using Context ): Boolean =
22
22
val period = ctx.period
23
- period == p ||
23
+ period.code == p.code ||
24
24
period.runId == p.runId &&
25
25
unfusedPhases(period.phaseId).sameBaseTypesStartId ==
26
26
unfusedPhases(p.phaseId).sameBaseTypesStartId
Original file line number Diff line number Diff line change @@ -2863,7 +2863,7 @@ object SymDenotations {
2863
2863
}
2864
2864
2865
2865
def isValidAt (phase : Phase )(using Context ) =
2866
- checkedPeriod == ctx.period ||
2866
+ checkedPeriod.code == ctx.period.code ||
2867
2867
createdAt.runId == ctx.runId &&
2868
2868
createdAt.phaseId < unfusedPhases.length &&
2869
2869
sameGroup(unfusedPhases(createdAt.phaseId), phase) &&
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ object Symbols {
103
103
/** The current denotation of this symbol */
104
104
final def denot (using Context ): SymDenotation = {
105
105
util.Stats .record(" Symbol.denot" )
106
- if ( checkedPeriod == ctx.period) lastDenot
106
+ if checkedPeriod.code == ctx.period.code then lastDenot
107
107
else computeDenot(lastDenot)
108
108
}
109
109
Original file line number Diff line number Diff line change @@ -2263,7 +2263,7 @@ object Types {
2263
2263
final def symbol (using Context ): Symbol =
2264
2264
// We can rely on checkedPeriod (unlike in the definition of `denot` below)
2265
2265
// because SymDenotation#installAfter never changes the symbol
2266
- if (checkedPeriod == ctx.period) lastSymbol.asInstanceOf [Symbol ]
2266
+ if (checkedPeriod.code == ctx.period.code ) lastSymbol.asInstanceOf [Symbol ]
2267
2267
else computeSymbol
2268
2268
2269
2269
private def computeSymbol (using Context ): Symbol =
You can’t perform that action at this time.
0 commit comments