@@ -10,7 +10,7 @@ import TypeOps.refineUsingParent
1010import collection .mutable
1111import util .{Stats , NoSourcePosition , EqHashMap }
1212import config .Config
13- import config .Feature .{betterMatchTypeExtractorsEnabled , migrateTo3 , sourceVersion }
13+ import config .Feature .{migrateTo3 , sourceVersion }
1414import config .Printers .{subtyping , gadts , matchTypes , capt , noPrinter }
1515import config .SourceVersion
1616import TypeErasure .{erasedLub , erasedGlb }
@@ -3621,10 +3621,8 @@ class MatchReducer(initctx: Context) extends TypeComparer(initctx) {
36213621 case MatchTypeCasePattern .TypeMemberExtractor (typeMemberName, capture) =>
36223622 /** Try to remove references to `skolem` from a type in accordance with the spec.
36233623 *
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.
36283626 *
36293627 * If any reference to `skolem` remains in the result type,
36303628 * `refersToSkolem` is set to true.
@@ -3638,7 +3636,7 @@ class MatchReducer(initctx: Context) extends TypeComparer(initctx) {
36383636 case `skolem` =>
36393637 refersToSkolem = true
36403638 tp
3641- case tp : NamedType if betterMatchTypeExtractorsEnabled =>
3639+ case tp : NamedType =>
36423640 val pre1 = apply(tp.prefix)
36433641 if refersToSkolem then
36443642 tp match
@@ -3656,7 +3654,7 @@ class MatchReducer(initctx: Context) extends TypeComparer(initctx) {
36563654 tp.derivedSelect(pre1)
36573655 else
36583656 tp.derivedSelect(pre1)
3659- case tp : LazyRef if betterMatchTypeExtractorsEnabled =>
3657+ case tp : LazyRef =>
36603658 // By default, TypeMap maps LazyRefs lazily. We need to
36613659 // force it for `refersToSkolem` to be correctly set.
36623660 apply(tp.ref)
0 commit comments