diff options
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/TypeOps.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/TypeOps.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/TypeOps.scala b/compiler/src/dotty/tools/dotc/core/TypeOps.scala index 6c40794e3..3d2906320 100644 --- a/compiler/src/dotty/tools/dotc/core/TypeOps.scala +++ b/compiler/src/dotty/tools/dotc/core/TypeOps.scala @@ -282,7 +282,7 @@ trait TypeOps { this: Context => // TODO: Make standalone object. */ def harmonizeUnion(tp: Type): Type = tp match { case tp: OrType => - joinIfScala2(typeComparer.fluidly(tp.tp1 | tp.tp2)) + joinIfScala2(ctx.typeComparer.lub(harmonizeUnion(tp.tp1), harmonizeUnion(tp.tp2), canConstrain = true)) case tp @ AndType(tp1, tp2) => tp derived_& (harmonizeUnion(tp1), harmonizeUnion(tp2)) case tp: RefinedType => |