Skip to content

Commit

Permalink
Add some casts to satisfy Dotty (#3230)
Browse files Browse the repository at this point in the history
  • Loading branch information
travisbrown authored Dec 31, 2019
1 parent 487d2a9 commit 4f5f7ac
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[M]) :: 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 4f5f7ac

Please sign in to comment.