File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1543,10 +1543,8 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
1543
1543
case tp1 : RefinedType =>
1544
1544
tp2 match {
1545
1545
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)
1550
1548
case _ =>
1551
1549
NoType
1552
1550
}
@@ -1583,7 +1581,7 @@ class TypeComparer(initctx: Context) extends DotClass with ConstraintHandling {
1583
1581
case tp1 : AnnotatedType =>
1584
1582
tp1.underlying | tp2
1585
1583
case _ =>
1586
- PredicateRefinedType .mergePredicates(tp1, tp2, isAnd = false )
1584
+ NoType
1587
1585
}
1588
1586
1589
1587
/** Show type, handling type types better than the default */
You can’t perform that action at this time.
0 commit comments