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 a43cf8a commit 22539feCopy full SHA for 22539fe
compiler/src/dotty/tools/dotc/core/TypeOps.scala
@@ -137,6 +137,8 @@ object TypeOps:
137
tp2
138
case tp1 => tp1
139
}
140
+ case defn.MatchCase(pat, body) =>
141
+ defn.MatchCase(simplify(pat, theMap), body)
142
case tp: AppliedType =>
143
tp.tycon match
144
case tycon: TypeRef if tycon.info.isInstanceOf[MatchAlias] =>
@@ -485,7 +487,7 @@ object TypeOps:
485
487
tp
486
488
else tryWiden(tp, tp.prefix).orElse {
489
if (tp.isTerm && variance > 0 && !pre.isSingleton)
- apply(tp.info.widenExpr)
490
+ apply(tp.info.widenExpr)
491
else if (upper(pre).member(tp.name).exists)
492
super.derivedSelect(tp, pre)
493
else
0 commit comments