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.
1 parent 46d37ca commit 6a2a649Copy full SHA for 6a2a649
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -4490,7 +4490,7 @@ object Types {
4490
myReduced =
4491
trace(i"reduce match type $this $hashCode", typr, show = true) {
4492
def matchCases(cmp: TrackingTypeComparer): Type =
4493
- try cmp.matchCases(scrutinee.normalized, cases)
+ try cmp.matchCases(scrutinee.dealias.normalized, cases)
4494
catch case ex: Throwable =>
4495
handleRecursive("reduce type ", i"$scrutinee match ...", ex)
4496
finally updateReductionContext(cmp.footprint)
0 commit comments