Skip to content

Commit d81f663

Browse files
committed
Fix test
1 parent 9e3d234 commit d81f663

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/pending/pos/blueSkyExtensions.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ object blueSkyExtensions {
6767
def map[B](f: A => B): This[B]
6868
}
6969

70+
// Generically, `pure[A]{.map(f)}^n`
71+
def develop[A, F[X] : Functor[X]](n: Int, f: A => A): F[A] =
72+
if (n == 0) Functor.static[F].pure[A]
73+
else develop[A, F](n - 1, f).map(f)
74+
7075
trait Monad[A] extends Functor[A] {
7176
static def pure[A]: This[A]
7277

tests/run/magnet.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ object magnets {
1515

1616
object CompletionMagnet {
1717

18-
extend (StatusCode, type T: Marshaller) implements CompletionMagnet {
18+
extend (StatusCode, type T: Marshaller) : CompletionMagnet {
1919
type Result = String
2020
def apply(): String = implicitly[Marshaller[T]].marshall(this._2)
2121
}
2222

23-
extend Future[HttpResponse] implements CompletionMagnet {
23+
extend Future[HttpResponse] : CompletionMagnet {
2424
type Result = Int
2525
def apply(): Int = 1
2626
}
2727

28-
extend Future[StatusCode] implements CompletionMagnet {
28+
extend Future[StatusCode] : CompletionMagnet {
2929
type Result = Int
3030
def apply(): Int = 2
3131
}

0 commit comments

Comments
 (0)