We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7151d0f commit 6eece75Copy full SHA for 6eece75
src/dotty/tools/dotc/core/TypeComparer.scala
@@ -645,7 +645,7 @@ class TypeComparer(initctx: Context) extends DotClass {
645
else {
646
val tp1w = tp1.widen
647
val tp2w = tp2.widen
648
- if ((tp1 ne tp1w) && (tp2 ne tp2w)) lub(tp1w, tp2w)
+ if ((tp1 ne tp1w) || (tp2 ne tp2w)) lub(tp1w, tp2w)
649
else orType(tp1w, tp2w) // no need to check subtypes again
650
}
651
0 commit comments