File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5124,6 +5124,7 @@ object Types extends TypeUtils {
5124
5124
}
5125
5125
5126
5126
def isUpToDate : Boolean =
5127
+ (reductionContext ne null ) &&
5127
5128
reductionContext.keysIterator.forall: tp =>
5128
5129
reductionContext(tp) `eq` contextInfo(tp)
5129
5130
@@ -5169,10 +5170,10 @@ object Types extends TypeUtils {
5169
5170
then
5170
5171
record(" MatchType.reduce computed" )
5171
5172
if (myReduced != null ) record(" MatchType.reduce cache miss" )
5173
+ if ! isUpToDate then setReductionContext()
5172
5174
myReduced =
5173
5175
trace(i " reduce match type $this $hashCode" , matchTypes, show = true ):
5174
5176
withMode(Mode .Type ):
5175
- setReductionContext()
5176
5177
TypeComparer .reduceMatchWith: cmp =>
5177
5178
val saved = ctx.typerState.snapshot()
5178
5179
try
You can’t perform that action at this time.
0 commit comments