@@ -2005,10 +2005,15 @@ class TypeComparer(initctx: Context) extends ConstraintHandling[AbsentContext] {
20052005 intersecting(tp1.tp1, tp2) || intersecting(tp1.tp2, tp2)
20062006 case (_, tp2 : OrType ) =>
20072007 intersecting(tp1, tp2.tp1) || intersecting(tp1, tp2.tp2)
2008+ case (tp1 : AndType , tp2 : AndType ) =>
2009+ intersecting(tp1.tp1, tp2.tp1) && intersecting(tp1.tp2, tp2.tp2) ||
2010+ intersecting(tp1.tp1, tp2.tp2) && intersecting(tp1.tp2, tp2.tp1)
20082011 case (tp1 : AndType , _) =>
2009- intersecting(tp1.tp1, tp2) && intersecting(tp1.tp2, tp2) && intersecting(tp1.tp1, tp1.tp2)
2012+ intersecting(tp1.tp1, tp2) && intersecting(tp1.tp2, tp2) ||
2013+ intersecting(tp1.tp2, tp2) && intersecting(tp1.tp1, tp2)
20102014 case (_, tp2 : AndType ) =>
2011- intersecting(tp1, tp2.tp1) && intersecting(tp1, tp2.tp2) && intersecting(tp2.tp1, tp2.tp2)
2015+ intersecting(tp1, tp2.tp1) && intersecting(tp1, tp2.tp2) ||
2016+ intersecting(tp1, tp2.tp2) && intersecting(tp1, tp2.tp1)
20122017 case (tp1 : TypeProxy , tp2 : TypeProxy ) =>
20132018 intersecting(tp1.underlying, tp2) && intersecting(tp1, tp2.underlying)
20142019 case (tp1 : TypeProxy , _) =>
0 commit comments