Skip to content

Commit

Permalink
Add casts for Dotty
Browse files Browse the repository at this point in the history
  • Loading branch information
travisbrown committed Dec 4, 2019
1 parent ef1c482 commit 0ba32c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/Eval.scala
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ object Eval extends EvalInstances {
case Nil => a
}
case None =>
loop(eval, addToMemo(m) :: fs)
loop(eval, addToMemo(m.asInstanceOf[Memoize[Any]]) :: fs)
}
case x =>
fs match {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/data/AndThen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ sealed abstract class AndThen[-T, +R] extends (T => R) with Product with Seriali
self match {
case Concat(left, inner) =>
self = left.asInstanceOf[AndThen[Any, Any]]
right = inner.andThenF(right)
right = inner.asInstanceOf[AndThen[Any, Any]].andThenF(right)

case _ => // Single
self = self.andThenF(right)
Expand Down

0 comments on commit 0ba32c7

Please sign in to comment.