@@ -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 , noPrinter }
15
15
import config .SourceVersion
16
16
import TypeErasure .{erasedLub , erasedGlb }
@@ -3481,10 +3481,8 @@ class MatchReducer(initctx: Context) extends TypeComparer(initctx) {
3481
3481
case MatchTypeCasePattern .TypeMemberExtractor (typeMemberName, capture) =>
3482
3482
/** Try to remove references to `skolem` from a type in accordance with the spec.
3483
3483
*
3484
- * If `betterMatchTypeExtractorsEnabled` is enabled then references
3485
- * to `skolem` occuring are avoided by following aliases and
3486
- * singletons, otherwise no attempt made to avoid references to
3487
- * `skolem`.
3484
+ * References to `skolem` occuring are avoided by following aliases and
3485
+ * singletons.
3488
3486
*
3489
3487
* If any reference to `skolem` remains in the result type,
3490
3488
* `refersToSkolem` is set to true.
@@ -3498,7 +3496,7 @@ class MatchReducer(initctx: Context) extends TypeComparer(initctx) {
3498
3496
case `skolem` =>
3499
3497
refersToSkolem = true
3500
3498
tp
3501
- case tp : NamedType if betterMatchTypeExtractorsEnabled =>
3499
+ case tp : NamedType =>
3502
3500
val pre1 = apply(tp.prefix)
3503
3501
if refersToSkolem then
3504
3502
tp match
@@ -3516,7 +3514,7 @@ class MatchReducer(initctx: Context) extends TypeComparer(initctx) {
3516
3514
tp.derivedSelect(pre1)
3517
3515
else
3518
3516
tp.derivedSelect(pre1)
3519
- case tp : LazyRef if betterMatchTypeExtractorsEnabled =>
3517
+ case tp : LazyRef =>
3520
3518
// By default, TypeMap maps LazyRefs lazily. We need to
3521
3519
// force it for `refersToSkolem` to be correctly set.
3522
3520
apply(tp.ref)
0 commit comments