Skip to content

Commit cc44169

Browse files
committed
Fix testQuick on changed function in object
Fix sbt#5504
1 parent 11a7ab3 commit cc44169

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

main/src/main/scala/sbt/Defaults.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,11 +1393,10 @@ object Defaults extends BuildCommon {
13931393
val x = {
13941394
import analysis.{ apis, relations => rel }
13951395
rel.internalClassDeps(c).map(intlStamp(_, analysis, s + c)) ++
1396-
rel.externalDeps(c).map(stamp) +
1397-
(apis.internal.get(c) match {
1398-
case Some(x) => x.compilationTimestamp
1399-
case _ => Long.MinValue
1400-
})
1396+
rel.externalDeps(c).map(stamp) ++
1397+
rel.productClassName.reverse(c).flatMap { pc =>
1398+
apis.internal.get(pc).map(_.compilationTimestamp)
1399+
} + Long.MinValue
14011400
}.max
14021401
if (x != Long.MinValue) {
14031402
stamps(c) = x

0 commit comments

Comments
 (0)