Skip to content

Commit 38c213e

Browse files
committed
Workaround scala/scala3#4742
1 parent 58f6e22 commit 38c213e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/scala/util/control/Exception.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ object Exception {
159159
def apply(x: Throwable): T = f(downcast(x).get)
160160
}
161161

162-
def mkThrowableCatcher[T](isDef: Throwable => Boolean, f: Throwable => T) = mkCatcher(isDef, f)
162+
def mkThrowableCatcher[T](isDef: Throwable => Boolean, f: Throwable => T) = mkCatcher[Throwable, T](isDef, f)
163163

164164
implicit def throwableSubtypeToCatcher[Ex <: Throwable: ClassTag, T](pf: PartialFunction[Ex, T]) =
165165
mkCatcher(pf.isDefinedAt _, pf.apply _)

0 commit comments

Comments
 (0)