@@ -10,7 +10,7 @@ import TypeOps.refineUsingParent
10
10
import collection .mutable
11
11
import util .{Stats , NoSourcePosition , EqHashMap }
12
12
import config .Config
13
- import config .Feature .{betterMatchTypeExtractorsEnabled , migrateTo3 , sourceVersion }
13
+ import config .Feature .{migrateTo3 , sourceVersion }
14
14
import config .Printers .{subtyping , gadts , matchTypes , capt , noPrinter }
15
15
import config .SourceVersion
16
16
import TypeErasure .{erasedLub , erasedGlb }
@@ -3621,10 +3621,8 @@ class MatchReducer(initctx: Context) extends TypeComparer(initctx) {
3621
3621
case MatchTypeCasePattern .TypeMemberExtractor (typeMemberName, capture) =>
3622
3622
/** Try to remove references to `skolem` from a type in accordance with the spec.
3623
3623
*
3624
- * If `betterMatchTypeExtractorsEnabled` is enabled then references
3625
- * to `skolem` occuring are avoided by following aliases and
3626
- * singletons, otherwise no attempt made to avoid references to
3627
- * `skolem`.
3624
+ * References to `skolem` occuring are avoided by following aliases and
3625
+ * singletons.
3628
3626
*
3629
3627
* If any reference to `skolem` remains in the result type,
3630
3628
* `refersToSkolem` is set to true.
@@ -3638,7 +3636,7 @@ class MatchReducer(initctx: Context) extends TypeComparer(initctx) {
3638
3636
case `skolem` =>
3639
3637
refersToSkolem = true
3640
3638
tp
3641
- case tp : NamedType if betterMatchTypeExtractorsEnabled =>
3639
+ case tp : NamedType =>
3642
3640
val pre1 = apply(tp.prefix)
3643
3641
if refersToSkolem then
3644
3642
tp match
@@ -3656,7 +3654,7 @@ class MatchReducer(initctx: Context) extends TypeComparer(initctx) {
3656
3654
tp.derivedSelect(pre1)
3657
3655
else
3658
3656
tp.derivedSelect(pre1)
3659
- case tp : LazyRef if betterMatchTypeExtractorsEnabled =>
3657
+ case tp : LazyRef =>
3660
3658
// By default, TypeMap maps LazyRefs lazily. We need to
3661
3659
// force it for `refersToSkolem` to be correctly set.
3662
3660
apply(tp.ref)
0 commit comments