Skip to content

Commit 33c8b60

Browse files
Linyxusdwijnand
andauthored
Fix precedence error found in review
Co-authored-by: Dale Wijnand <[email protected]>
1 parent 380bd1b commit 33c8b60

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
@@ -3016,7 +3016,7 @@ object TypeComparer {
30163016
extension (s: Repr)
30173017
inline def combinedWith(that: Repr): Repr = s min that
30183018

3019-
inline def bothHaveOr(s1: Repr, s2: Repr): Boolean = ~(s1 | s2 & NotHasOr) != 0
3019+
inline def bothHaveOr(s1: Repr, s2: Repr): Boolean = ~((s1 | s2) & NotHasOr) != 0
30203020
inline def bothCovered(s1: Repr, s2: Repr): Boolean = (s1 & s2 & IsCovered) != 0
30213021
end CoveredStatus
30223022
type CoveredStatus = CoveredStatus.Repr

0 commit comments

Comments
 (0)