Skip to content

Commit

Permalink
Workaround for scala/bug#11068
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry committed Aug 14, 2018
1 parent dc1c7e8 commit d31c011
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ final class taskSpec extends AsyncFreeSpec with Matchers {
"nested seq of task" in {

def composeTask(t0: Task[Seq[Task[Seq[Task[Seq[Task[Seq[Float]]]]]]]]): Task[Seq[Seq[Seq[Seq[Float]]]]] = {
Task.join {
// TODO: remove explicit type parameters when https://github.com/scala/bug/issues/11068 is fixed
Task.join[Seq[Seq[Seq[Float]]], Seq[Seq[Seq[Seq[Float]]]]] {
val t1 = !Each(!t0)
!Task.join {
!Task.join[Seq[Seq[Float]], Seq[Seq[Seq[Float]]]] {
val t2 = !Each(!t1)
!Task.join {
!Task.join[Seq[Float], Seq[Seq[Float]]] {
val t3 = !Each(!t2)
!t3
}
Expand Down

0 comments on commit d31c011

Please sign in to comment.