diff --git a/core/src/main/scala/com/avsystem/commons/opaque/BaseOpaque.scala b/core/src/main/scala/com/avsystem/commons/opaque/BaseOpaque.scala index dfc465f30..17f96e66c 100644 --- a/core/src/main/scala/com/avsystem/commons/opaque/BaseOpaque.scala +++ b/core/src/main/scala/com/avsystem/commons/opaque/BaseOpaque.scala @@ -2,7 +2,7 @@ package com.avsystem.commons package opaque import com.avsystem.commons.opaque.Castable.<:> -import com.avsystem.commons.serialization.GenCodec +import com.avsystem.commons.serialization.{GenCodec, GenKeyCodec} private[opaque] trait BaseOpaque[From] extends Castable.Ops { trait Tag @@ -12,5 +12,6 @@ private[opaque] trait BaseOpaque[From] extends Castable.Ops { implicit protected final val castable: From <:> Type = new Castable[From, Type] - implicit final def codec(implicit fromCodec: GenCodec[From]): GenCodec[Type] = wrapF(fromCodec) + implicit final def transparentCodec(implicit fromCodec: GenCodec[From]): GenCodec[Type] = wrapF(fromCodec) + implicit final def transparentKeyCodec(implicit fromKeyCodec: GenKeyCodec[From]): GenKeyCodec[Type] = wrapF(fromKeyCodec) }