Skip to content

Commit b2a8b5c

Browse files
Disable distribution of intersection types over applied types
1 parent 03a54a7 commit b2a8b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2770,7 +2770,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
27702770
* @pre !(tp1 <: tp2) && !(tp2 <:< tp1) -- these cases were handled before
27712771
*/
27722772
private def distributeAnd(tp1: Type, tp2: Type): Type = tp1 match {
2773-
case tp1 @ AppliedType(tycon1, args1) =>
2773+
case tp1 @ AppliedType(tycon1, args1) if false =>
27742774
tp2 match {
27752775
case AppliedType(tycon2, args2)
27762776
if tycon1.typeSymbol == tycon2.typeSymbol && tycon1 =:= tycon2 =>

0 commit comments

Comments
 (0)