次の設定を想定しています。
trait A[L] { def op(l1:L, l2:L): L }
trait E[L] { def op(l:L): L }
implicit def some2E[L:A](self:L) = new E[L] { def op(other:L) =
implicitly[A[L]].op(self,other) }
に直接展開する方法はm op n
ありますa.op(m,n)
か?a
A
次の設定を想定しています。
trait A[L] { def op(l1:L, l2:L): L }
trait E[L] { def op(l:L): L }
implicit def some2E[L:A](self:L) = new E[L] { def op(other:L) =
implicitly[A[L]].op(self,other) }
に直接展開する方法はm op n
ありますa.op(m,n)
か?a
A