Merge pull request #29833 from raboof/exhaustive-cachePolicy-comparison

Exhaustive comparison for cache policies
This commit is contained in:
Patrik Nordwall 2021-01-13 07:47:02 +01:00 committed by GitHub
commit 96548837c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,9 @@ package object internal {
case (Never, Never) => 0
case (Ttl(v1), Ttl(v2)) => v1.compare(v2)
case (Never, _) => -1
case (_, Forever) => -1
case (Forever, _) => 1
case (_, Never) => 1
}
}