Skip to content

Commit 6891dc7

Browse files
oderskysmarter
andauthored
Update compiler/src/dotty/tools/dotc/core/Denotations.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent 64e0790 commit 6891dc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/core/Denotations.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,11 +469,11 @@ object Denotations {
469469

470470
val matchLoosely = sym1.matchNullaryLoosely || sym2.matchNullaryLoosely
471471

472-
if info2.overrides(info1, matchLoosely, checkClassInfo = false)
473-
&& symScore <= 0
472+
if symScore <= 0
473+
&& info2.overrides(info1, matchLoosely, checkClassInfo = false)
474474
then denot2
475-
else if info1.overrides(info2, matchLoosely, checkClassInfo = false)
476-
&& symScore >= 0
475+
else if symScore >= 0
476+
&& info1.overrides(info2, matchLoosely, checkClassInfo = false)
477477
then denot1
478478
else
479479
val jointInfo = infoMeet(info1, info2, safeIntersection)

0 commit comments

Comments
 (0)