Implicit clash in default JVMImplicits
Importing implicits._
will mean that two Int
codecs are imported silently, and these will clash causing implicit resolution to fail.
This is because the default implementation of UInt = Int
.
To work around this, we can do
scala> import scodec.protocols.protobuf.v3.implicits.{ implicitUInt => _, implicitULong => _, _ }
I've also added @deprecated
to the duplicate implicits, but these don't appear to trigger warnings during the import.
Edited by Luciano Joublanc