Pedro Silva
09/20/2019, 9:30 AMF parameterized to CompletionStage and I still can't quite get there.
Is there anyone here who might be able to help?
So far I've tried to implement interface CompletionStageMonad : Monad<ForCompletionStage> { (ForCompletionStage was created by me) but the signature the IDE generates for flatMap (and the only that compiles) is:
override fun <A, B> Kind<ForCompletionStage, A>.flatMap(f: (A) -> Kind<ForCompletionStage, B>): Kind<ForCompletionStage, B> {
I was expecting it to be:
override fun <A, B> Kind<ForCompletionStage, A>.flatMap(f: (A) -> Kind<ForCompletionStage, B>): CompletionStage<B> {
Without the Kind<...> in the return type