Skip to content

Commit 4d8213b

Browse files
committed
PredicateRefinedType.mergePredicates is erroneous at the moment; disabled it completely for the moment.
1 parent c85dba8 commit 4d8213b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

compiler/src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,10 +1543,8 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
15431543
case tp1: RefinedType =>
15441544
tp2 match {
15451545
case tp2: RefinedType if tp1.refinedName == tp2.refinedName =>
1546-
PredicateRefinedType.mergePredicates(tp1, tp2, isAnd = true) orElse {
1547-
tp1.derivedRefinedType(tp1.parent & tp2.parent, tp1.refinedName,
1548-
tp1.refinedInfo & tp2.refinedInfo)
1549-
}
1546+
tp1.derivedRefinedType(tp1.parent & tp2.parent, tp1.refinedName,
1547+
tp1.refinedInfo & tp2.refinedInfo)
15501548
case _ =>
15511549
NoType
15521550
}
@@ -1583,7 +1581,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
15831581
case tp1: AnnotatedType =>
15841582
tp1.underlying | tp2
15851583
case _ =>
1586-
PredicateRefinedType.mergePredicates(tp1, tp2, isAnd = false)
1584+
NoType
15871585
}
15881586

15891587
/** Show type, handling type types better than the default */

0 commit comments

Comments
 (0)