Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Closes #24120: Refactor: Move MatchReducer to its own file
TypeComparer.scalato a dedicated file:compiler/src/dotty/tools/dotc/core/MatchReducer.scala. The code movement is isolated in its own commit.caseLambda) of its superclass, TypeComparer, before invoking dependent inherited methods.TypeComparer.scala..git-blame-ignore-revs? I did not add this commit to the ignore list because that mechanism forces Git to look at the file state immediately before the commit. SinceMatchReducer.scaladid not exist before this commit, Git hits a "dead end" and cannot trace the history back toTypeComparer.scala.git blame -C(copy detection) and will incorrectly display me as the author of the moved lines. To verify the original authors (Martin Odersky, etc.), please run the following locally:MatchReducer modifies
caseLambdavariable of the superclass, and this modification is later needed when invoking methods of TypeComparer:Mutable protected state
caseLambda: