File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5173,17 +5173,17 @@ object Types extends TypeUtils {
5173
5173
trace(i " reduce match type $this $hashCode" , matchTypes, show = true ):
5174
5174
withMode(Mode .Type ):
5175
5175
setReductionContext()
5176
- def matchCases ( cmp : MatchReducer ) : Type =
5176
+ TypeComparer .reduceMatchWith : cmp =>
5177
5177
val saved = ctx.typerState.snapshot()
5178
5178
try
5179
- cmp.matchCases(scrutinee.normalized, cases.map(MatchTypeCaseSpec .analyze(_) ))
5179
+ cmp.matchCases(scrutinee.normalized, cases.map(MatchTypeCaseSpec .analyze))
5180
5180
catch case ex : Throwable =>
5181
+ myReduced = NoType
5181
5182
handleRecursive(" reduce type " , i " $scrutinee match ... " , ex)
5182
5183
finally
5183
5184
ctx.typerState.resetTo(saved)
5184
5185
// this drops caseLambdas in constraint and undoes any typevar
5185
5186
// instantiations during matchtype reduction
5186
- TypeComparer .reduceMatchWith(matchCases)
5187
5187
5188
5188
// else println(i"no change for $this $hashCode / $myReduced")
5189
5189
myReduced.nn
You can’t perform that action at this time.
0 commit comments