diff --git a/compiler/src/dotty/tools/dotc/core/Types.scala b/compiler/src/dotty/tools/dotc/core/Types.scala index 0d01668be2f5..c85d441115f3 100644 --- a/compiler/src/dotty/tools/dotc/core/Types.scala +++ b/compiler/src/dotty/tools/dotc/core/Types.scala @@ -6093,7 +6093,7 @@ object Types { } object takeAllFilter extends NameFilter { - def apply(pre: Type, name: Name)(using Context): Boolean = true + def apply(pre: Type, name: Name)(using Context): Boolean = name != nme.CONSTRUCTOR def isStable = true }