Skip to content

Commit 90675f3

Browse files
Disable distribution of intersection types over applied types
1 parent fb66af2 commit 90675f3

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
@@ -2771,7 +2771,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
27712771
* @pre !(tp1 <: tp2) && !(tp2 <:< tp1) -- these cases were handled before
27722772
*/
27732773
private def distributeAnd(tp1: Type, tp2: Type): Type = tp1 match {
2774-
case tp1 @ AppliedType(tycon1, args1) =>
2774+
case tp1 @ AppliedType(tycon1, args1) if false =>
27752775
tp2 match {
27762776
case AppliedType(tycon2, args2)
27772777
if tycon1.typeSymbol == tycon2.typeSymbol && tycon1 =:= tycon2 =>

0 commit comments

Comments
 (0)