Permalink
Browse files

T should be contra-variant so that eithers, options, etc may be mixed…

… with other types
  • Loading branch information...
1 parent 19e83f4 commit 5188e840f23ab7b828d5f16358144e1e4aae9bcc @n8han n8han committed Dec 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/scala/retry/retries.scala
@@ -45,7 +45,7 @@ object Backoff extends CountingRetry {
}
}
-class Success[T](val predicate: T => Boolean)
+class Success[-T](val predicate: T => Boolean)
object Success {
implicit def either[A,B]: Success[Either[A,B]] =

0 comments on commit 5188e84

Please sign in to comment.