Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Jul 25, 2023
1 parent 481c831 commit 9eeb151
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main/define/src/mill/define/Reflect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ private[mill] object Reflect {
.sortWith((m1, m2) =>
// Try to compare both ways to avoid flaky failure
// https://github.com/com-lihaoyi/mill/actions/runs/5633637756/job/15262758990
m1.getDeclaringClass.isAssignableFrom(m2.getDeclaringClass) &&
!m1.getDeclaringClass.isAssignableFrom(m2.getDeclaringClass)
m1.getDeclaringClass.isAssignableFrom(m2.getDeclaringClass)
)
.sortWith((m1, m2) =>
m1.getReturnType.isAssignableFrom(m2.getReturnType) &&
!m1.getReturnType.isAssignableFrom(m2.getReturnType)
m1.getReturnType.isAssignableFrom(m2.getReturnType)
)
.reverse
.distinctBy(_.getName)
Expand Down

0 comments on commit 9eeb151

Please sign in to comment.