Accessing nested type parameters in Dotty Scala

后端 未结 0 619
离开以前
离开以前 2021-01-04 07:55

I would like to do something like this with the new Scala Dotty compiler:

trait Monad[M[A]] (underlyingValue:A) {
  def bind[A, B](f: A => M[B]): M[B]
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题