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 b885a2f commit c0097c8Copy full SHA for c0097c8
compiler/src/dotty/tools/dotc/core/Normalize.scala
@@ -263,8 +263,9 @@ private final class NormalizeMap(implicit ctx: Context) extends TypeMap {
263
}
264
265
case tp @ TypeOf.Match(selector, cases) =>
266
+ val tp1 = TypeOf.Match.derived(tp)(apply(selector), cases).asInstanceOf[TypeOf]
267
new PatternMatcher.Translator(NoType, null)(ctx.enterTypeOf())
- .evaluateMatch(tp.tree.asInstanceOf[Match], normalizeBoolType).getOrElse(Stuck(tp))
268
+ .evaluateMatch(tp1.tree.asInstanceOf[Match], normalizeBoolType).getOrElse(Stuck(tp1))
269
270
case tp =>
271
mapOver(tp) match {
0 commit comments