@@ -379,7 +379,7 @@ object SpaceEngine {
379
379
project(pat)
380
380
381
381
case Typed (_, tpt) =>
382
- Typ (erase(tpt.tpe.stripAnnots, isValue = true , isTyped = true ), decomposed = false )
382
+ Typ (erase(tpt.tpe.stripAnnots, isValue = true ), decomposed = false )
383
383
384
384
case This (_) =>
385
385
Typ (pat.tpe.stripAnnots, decomposed = false )
@@ -464,13 +464,13 @@ object SpaceEngine {
464
464
tp.derivedAppliedType(erase(tycon, inArray, isValue = false ), args2)
465
465
466
466
case tp @ OrType (tp1, tp2) =>
467
- OrType (erase(tp1, inArray, isValue, isTyped ), erase(tp2, inArray, isValue, isTyped ), tp.isSoft)
467
+ OrType (erase(tp1, inArray, isValue), erase(tp2, inArray, isValue), tp.isSoft)
468
468
469
469
case AndType (tp1, tp2) =>
470
- AndType (erase(tp1, inArray, isValue, isTyped ), erase(tp2, inArray, isValue, isTyped ))
470
+ AndType (erase(tp1, inArray, isValue), erase(tp2, inArray, isValue))
471
471
472
472
case tp @ RefinedType (parent, _, _) =>
473
- erase(parent, inArray, isValue, isTyped )
473
+ erase(parent, inArray, isValue)
474
474
475
475
case tref : TypeRef if tref.symbol.isPatternBound =>
476
476
if inArray then erase(tref.underlying, inArray, isValue, isTyped)
@@ -905,7 +905,7 @@ object SpaceEngine {
905
905
def checkMatch (m : Match )(using Context ): Unit =
906
906
checkMatchExhaustivityOnly(m)
907
907
if reachabilityCheckable(m.selector) then checkReachability(m)
908
-
908
+
909
909
def checkMatchExhaustivityOnly (m : Match )(using Context ): Unit =
910
910
if exhaustivityCheckable(m.selector) then checkExhaustivity(m)
911
911
}
0 commit comments