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 {
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 @@ -2867,7 +2867,7 @@ object SymDenotations {
2867
2867
}
2868
2868
2869
2869
def isValidAt (phase : Phase )(using Context ) =
2870
- checkedPeriod == ctx.period ||
2870
+ checkedPeriod.code == ctx.period.code ||
2871
2871
createdAt.runId == ctx.runId &&
2872
2872
createdAt.phaseId < unfusedPhases.length &&
2873
2873
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 @@ -2266,7 +2266,7 @@ object Types {
2266
2266
final def symbol (using Context ): Symbol =
2267
2267
// We can rely on checkedPeriod (unlike in the definition of `denot` below)
2268
2268
// 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 ]
2270
2270
else computeSymbol
2271
2271
2272
2272
private def computeSymbol (using Context ): Symbol =
You can’t perform that action at this time.
0 commit comments