diff --git a/community-build/community-projects/Lucre b/community-build/community-projects/Lucre index 21a27a294ac7..b8f3c4e35037 160000 --- a/community-build/community-projects/Lucre +++ b/community-build/community-projects/Lucre @@ -1 +1 @@ -Subproject commit 21a27a294ac7c413f80839d96a02942b2c6d021c +Subproject commit b8f3c4e35037fea44b0b48472c1247341ef93a42 diff --git a/community-build/community-projects/zio b/community-build/community-projects/zio index a7f6e1a3b2e6..fee051a48f82 160000 --- a/community-build/community-projects/zio +++ b/community-build/community-projects/zio @@ -1 +1 @@ -Subproject commit a7f6e1a3b2e6bc35bed188739120da6cff105dbb +Subproject commit fee051a48f82802c397df6b181a602d5929012ce diff --git a/compiler/src/dotty/tools/dotc/core/TypeComparer.scala b/compiler/src/dotty/tools/dotc/core/TypeComparer.scala index eb03a2b1c05d..c009af066a99 100644 --- a/compiler/src/dotty/tools/dotc/core/TypeComparer.scala +++ b/compiler/src/dotty/tools/dotc/core/TypeComparer.scala @@ -2770,16 +2770,6 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling * @pre !(tp1 <: tp2) && !(tp2 <:< tp1) -- these cases were handled before */ private def distributeAnd(tp1: Type, tp2: Type): Type = tp1 match { - case tp1 @ AppliedType(tycon1, args1) => - tp2 match { - case AppliedType(tycon2, args2) - if tycon1.typeSymbol == tycon2.typeSymbol && tycon1 =:= tycon2 => - val jointArgs = glbArgs(args1, args2, tycon1.typeParams) - if (jointArgs.forall(_.exists)) (tycon1 & tycon2).appliedTo(jointArgs) - else NoType - case _ => - NoType - } case tp1: RefinedType => // opportunistically merge same-named refinements // this does not change anything semantically (i.e. merging or not merging