Skip to content

Commit 27c0b77

Browse files
1 parent 3cd49e7 commit 27c0b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/scala/scala/async/package.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ package object async {
3535
throw new Exception(s"Exception of type ${classTag[T]} was not thrown")
3636
} catch {
3737
case t: Throwable =>
38-
if (classTag[T].runtimeClass != t.getClass) throw t
38+
if (!classTag[T].runtimeClass.isAssignableFrom(t.getClass)) throw t
3939
else t.asInstanceOf[T]
4040
}
4141
}

0 commit comments

Comments
 (0)