Setting abstract type based on typeclass
问题 I have an example like this: abstract class IsBaseTC[A] { type Self } abstract class JustHoldsTypeMember[A] extends IsBaseTC[A] implicit val doubleHoldsTypeMember = new JustHoldsTypeMember[Double] { type Self = Double } abstract class IsActualTC[A, T](implicit val aIsBaseTc: IsBaseTC[T]) extends IsBaseTC { type Self = A def get(self: A): aIsBaseTc.Self } case class Container[T]( get: T ) implicit val containerOfDoubleIsActual = new IsActualTC[Container[Double], Double] { def get(self: Self) =