Skip to content

Commit

Permalink
Fix compilation error from escaping private class.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Feb 4, 2015
1 parent be29556 commit bb26aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/src/main/scala/cats/data/Or.scala
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ trait OrFunctions {
* Catch a specified `Throwable` ('`T`') instance and return it wrapped in an `Or[T, A]`,
* where `A` is the valid return value (inferred from function block)
*/
def fromTryCatch[T >: Null <: Throwable]: FromTryCatchAux[T] = new FromTryCatchAux()
def fromTryCatch[T >: Null <: Throwable]: FromTryCatchAux[T] = new FromTryCatchAux[T]

private class FromTryCatchAux[T] {
class FromTryCatchAux[T] private[OrFunctions] {
def apply[A](f: => A)(implicit T: ClassTag[T]): T Or A = {
try {
Or.RightOr(f)
Expand Down

0 comments on commit bb26aee

Please sign in to comment.