Skip to content

Commit b9c984a

Browse files
Always simplify match type scrutinees
1 parent 383e006 commit b9c984a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3927,7 +3927,7 @@ object Types {
39273927
myReduced =
39283928
trace(i"reduce match type $this $hashCode", typr, show = true) {
39293929
try
3930-
typeComparer.matchCases(scrutinee, cases)(trackingCtx)
3930+
typeComparer.matchCases(scrutinee.simplified, cases)(trackingCtx)
39313931
catch {
39323932
case ex: Throwable =>
39333933
handleRecursive("reduce type ", i"$scrutinee match ...", ex)

0 commit comments

Comments
 (0)