You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The order becomes important. MyTrait2 compiles but MyTrait fails with:
stable, immutable value required to override:
[error] val applicative: cats.Applicative[F] (defined in trait Censor)
[error] with def applicative: cats.Applicative[F] (defined in trait Ask)
[error] trait MyTrait[F[_], Env, Evt] extends Censor[F, Chain[Evt]] with Ask[F, Env]
How about using the same pattern to avoid such issues?
The text was updated successfully, but these errors were encountered:
In
Ask
:In
Censor
:So if you define traits that extend both, like:
The order becomes important.
MyTrait2
compiles butMyTrait
fails with:How about using the same pattern to avoid such issues?
The text was updated successfully, but these errors were encountered: