We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MatchReducer
1 parent 04531c9 commit ae1381aCopy full SHA for ae1381a
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -3594,7 +3594,11 @@ object MatchReducer:
3594
case Stuck => "Stuck"
3595
case NoInstance(fails) => "NoInstance(" ~ Text(fails.map(p.toText(_) ~ p.toText(_)), ", ") ~ ")"
3596
3597
-/** A type comparer for reducing match types. */
+/** A [[TypeComparer]] for reducing match types.
3598
+ *
3599
+ * This needs to be a [[TypeComparer]] because it mutates the `caseLambda`
3600
+ * field defined in [[ConstraintHandling]]. See #24488 for more details.
3601
+ */
3602
class MatchReducer(initctx: Context) extends TypeComparer(initctx) {
3603
import MatchReducer.*
3604
0 commit comments