diff options
author | Tin Pavlinic <tin.pavlinic@gmail.com> | 2017-12-08 12:03:51 +1100 |
---|---|---|
committer | Tin Pavlinic <tin.pavlinic@gmail.com> | 2017-12-09 17:10:12 +1100 |
commit | a583f70966c6d5b0fbda0c9989803220b7292ac9 (patch) | |
tree | 0276b3e17ba391a1f49b83f98f9275eab3610ea8 /core/src/test | |
parent | 727e29290ef301ecce764d3416b0ea7b75f9f1e1 (diff) | |
download | mill-a583f70966c6d5b0fbda0c9989803220b7292ac9.tar.gz mill-a583f70966c6d5b0fbda0c9989803220b7292ac9.tar.bz2 mill-a583f70966c6d5b0fbda0c9989803220b7292ac9.zip |
Add support for compiler plugins and enable acyclic plugin in build
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/scala/mill/define/ApplicativeTests.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/test/scala/mill/define/ApplicativeTests.scala b/core/src/test/scala/mill/define/ApplicativeTests.scala index 14b566b3..29177a03 100644 --- a/core/src/test/scala/mill/define/ApplicativeTests.scala +++ b/core/src/test/scala/mill/define/ApplicativeTests.scala @@ -41,6 +41,9 @@ object ApplicativeTests extends TestSuite { def zip[A, B, C, D, E, F, G, H](a: O[A], b: O[B], c: O[C], d: O[D], e: O[E], f: O[F], g: O[G], h: O[H]) = { for(a <- a; b <- b; c <- c; d <- d; e <- e; f <- f; g <- g; h <- h) yield (a, b, c, d, e, f, g, h) } + def zip[A, B, C, D, E, F, G, H, I](a: O[A], b: O[B], c: O[C], d: O[D], e: O[E], f: O[F], g: O[G], h: O[H], i: O[I]) = { + for(a <- a; b <- b; c <- c; d <- d; e <- e; f <- f; g <- g; h <- h; i <- i) yield (a, b, c, d, e, f, g, h, i) + } } class Counter{ var value = 0 @@ -145,4 +148,3 @@ object ApplicativeTests extends TestSuite { } } } - |