aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Inferencing.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/typer/Inferencing.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Inferencing.scala4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/typer/Inferencing.scala b/src/dotty/tools/dotc/typer/Inferencing.scala
index 6becd29ec..28f3af7cb 100644
--- a/src/dotty/tools/dotc/typer/Inferencing.scala
+++ b/src/dotty/tools/dotc/typer/Inferencing.scala
@@ -177,10 +177,6 @@ object Inferencing {
def widenForMatchSelector(tp: Type)(implicit ctx: Context): Type = tp.widen match {
case tp: TypeRef if !tp.symbol.isClass =>
widenForMatchSelector(tp.info.bounds.hi)
- case tp @ RefinedType(parent, rname, rinfo) if !parent.typeSymbol.isClass =>
- tp.derivedRefinedType(widenForMatchSelector(parent), rname, rinfo)
- case tp: RecType if !tp.parent.typeSymbol.isClass =>
- tp.derivedRecType(widenForMatchSelector(tp.parent))
case tp: HKApply =>
widenForMatchSelector(tp.upperBound)
case tp: AnnotatedType =>